Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
8b87a67c
Commit
8b87a67c
authored
Oct 04, 2011
by
Leigh B Stoller
Browse files
Fixes so that mysyscert does not blow up when no urn is provided; do
not put in any of the req_altname stuff.
parent
7cc8f51e
Changes
2
Hide whitespace changes
Inline
Side-by-side
account/mksyscert.in
View file @
8b87a67c
...
...
@@ -218,6 +218,9 @@ system("cp -f $TEMPLATE syscert.cnf") == 0
open
(
TEMP
,
"
>>syscert.cnf
")
or
fatal
("
Could not open
$TEMPLATE
for append: $!
");
if
(
defined
(
$urn
))
{
print
TEMP
"
subjectAltName=
\@
req_altname
\n
";
}
print
TEMP
"
basicConstraints=critical,CA:
"
.
(
$is_ca
?
"
TRUE
"
:
"
FALSE
"
)
.
"
\n\n
";
...
...
@@ -241,10 +244,12 @@ print TEMP "OU\t\t= \"$orgunit\"\n";
print
TEMP
"
CN
\t\t
=
$uuid
\n
";
print
TEMP
"
emailAddress
\t
=
$email
\n
";
print
TEMP
"
\n
";
print
TEMP
"
[ req_altname ]
\n
";
print
TEMP
"
URI=
$urn
\n
"
if
defined
(
$urn
);
print
TEMP
"
\n
";
if
(
defined
(
$urn
))
{
print
TEMP
"
\n
";
print
TEMP
"
[ req_altname ]
\n
";
print
TEMP
"
URI=
$urn
\n
";
print
TEMP
"
\n
";
}
close
(
TEMP
)
or
fatal
("
Could not close syscert.cnf: $!
");
...
...
ssl/syscert.cnf.in
View file @
8b87a67c
...
...
@@ -12,7 +12,7 @@ oid_section = protogeni_oids
[ protogeni_oids ]
xmlrpc = 2.25.305821105408246119474742976030998643995
# Modifed for update 5.21
# This will be appended to by mksyscert.
[ request_extensions ]
subjectKeyIdentifier=hash
subjectAltName=@req_altname
Write
Preview
Supports
Markdown
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