Commit be818f32 authored by Jonathon Duerig's avatar Jonathon Duerig

Return actual urns in target_urn and owner_urn rather than uuids.

parent ff6b3ea5
...@@ -512,6 +512,7 @@ sub created($) { return field($_[0], "created"); } ...@@ -512,6 +512,7 @@ sub created($) { return field($_[0], "created"); }
sub cert($) { return field($_[0], "cert"); } sub cert($) { return field($_[0], "cert"); }
sub privkey($) { return field($_[0], "privkey"); } sub privkey($) { return field($_[0], "privkey"); }
sub revoked($) { return field($_[0], "revoked"); } sub revoked($) { return field($_[0], "revoked"); }
sub uri($) { return field($_[0], "uri"); }
# #
# Need to add DN to the emulab table. # Need to add DN to the emulab table.
......
...@@ -376,14 +376,14 @@ sub Sign($$) ...@@ -376,14 +376,14 @@ sub Sign($$)
return -1; return -1;
} }
my $target_cert = $self->target_cert()->cert(); my $target_cert = $self->target_cert()->cert();
my $target_urn = $self->target_uuid(); my $target_urn = $self->target_uri();
if (!defined($self->owner_cert())) { if (!defined($self->owner_cert())) {
print STDERR "No owner certificate attached to $self\n"; print STDERR "No owner certificate attached to $self\n";
return -1; return -1;
} }
my $owner_cert = $self->owner_cert()->cert(); my $owner_cert = $self->owner_cert()->cert();
my $owner_urn = $self->owner_uuid(); my $owner_urn = $self->owner_uri();
# Credential expiration: hard-code to 24 hours from now. # Credential expiration: hard-code to 24 hours from now.
my @expt = gmtime( time() + 24 * 60 * 60 ); my @expt = gmtime( time() + 24 * 60 * 60 );
......
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