Commit d63ce4e5 authored by Leigh B Stoller's avatar Leigh B Stoller

Handle our portal private key and certificate.

parent b72a16c4
...@@ -1717,6 +1717,17 @@ sub RedeemTicket($) ...@@ -1717,6 +1717,17 @@ sub RedeemTicket($)
return GeniResponse->Create(GENIRESPONSE_FORBIDDEN(), undef, return GeniResponse->Create(GENIRESPONSE_FORBIDDEN(), undef,
"Credential does not match the URN"); "Credential does not match the URN");
} }
#
# If we got a cert/key, record them for the slice. This is a
# generic openssl key/cert that is stored on the nodes (and from
# which an ssh key pair can be derived).
#
if (exists($argref->{'certificate'}) || exists($argref->{'key'})) {
$slice->AddGenericCert((exists($argref->{'certificate'}) ?
$argref->{'certificate'} : undef),
(exists($argref->{'key'}) ?
$argref->{'key'} : undef));
}
my $isupdate = defined($aggregate); my $isupdate = defined($aggregate);
return GeniCM::SliverWorkAux($credential, $open_ticket, $keys, return GeniCM::SliverWorkAux($credential, $open_ticket, $keys,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment