Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
f99845c0
Commit
f99845c0
authored
Jul 29, 2011
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the startdate to an hour in the past, to avoid clock skew issues.
parent
4ec85d39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
account/mksyscert.in
account/mksyscert.in
+7
-2
No files found.
account/mksyscert.in
View file @
f99845c0
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-201
0
University of Utah and the Flux Group.
# Copyright (c) 2000-201
1
University of Utah and the Flux Group.
# All rights reserved.
#
use
strict
;
use
English
;
use
Getopt::
Long
;
use
POSIX
qw(strftime)
;
#
# Load the Testbed support stuff.
...
...
@@ -264,9 +265,13 @@ if( defined( $oldkeyfile ) ) {
#
# Sign the client cert request, creating a client certificate.
# We set the start date an hour in the past, to avoid clock skew
# problems.
#
my
$startdate
=
POSIX::
strftime
("
%y%m%d%H%M%SZ
",
gmtime
(
time
()
-
3600
));
$UID
=
0
;
system
("
$OPENSSL
ca -batch -policy policy_sslxmlrpc
"
.
system
("
$OPENSSL
ca -batch -policy policy_sslxmlrpc
-startdate
$startdate
"
.
"
-name CA_syscerts -config
$CACONFIG
"
.
"
-out syscert_cert.pem -cert
$certfile
-keyfile
$keyfile
"
.
"
-infiles syscert_req.pem
$outline
")
==
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment