Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
emulab
emulab-devel
Commits
2b4e55e6
Commit
2b4e55e6
authored
13 years ago
by
Leigh B Stoller
Browse files
Options
Downloads
Patches
Plain Diff
When PROTOGENI is on, put in the url of the protogeni XMLRPC server.
parent
8b87a67c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
account/mkusercert.in
+18
-1
18 additions, 1 deletion
account/mkusercert.in
ssl/usercert.cnf.in
+5
-5
5 additions, 5 deletions
ssl/usercert.cnf.in
with
23 additions
and
6 deletions
account/mkusercert.in
+
18
−
1
View file @
2b4e55e6
...
...
@@ -294,6 +294,23 @@ system("cp -f $TEMPLATE usercert.cnf") == 0
open
(
TEMP
,
"
>>usercert.cnf
")
or
fatal
("
Could not open
$TEMPLATE
for append: $!
");
if
(
$PGENISUPPORT
)
{
my
$url
=
"
@PROTOGENI_URL
@/sa
";
# unregistered OID 2.25.305821105408246119474742976030998643995
# (corresponding to UUID e61300a0-c4c5-11de-b14e-0002a5d5c51b)
# is used to indicate generic ProtoGENI XMLRPC servers.
print
TEMP
"
authorityInfoAccess=2.25.305821105408246119474742976030998643995;URI:
$url
\n
";
}
print
TEMP
"
\n
";
print
TEMP
"
[ req_distinguished_name ]
\n
";
print
TEMP
"
C
\t\t
=
@SSLCERT_COUNTRY
@
\n
";
print
TEMP
"
ST
\t\t
=
@SSLCERT_STATE
@
\n
";
print
TEMP
"
L
\t\t
=
@SSLCERT_LOCALITY
@
\n
";
print
TEMP
"
O
\t\t
=
@SSLCERT_ORGNAME
@
\n
";
if
(
$PGENISUPPORT
&&
$encrypted
)
{
print
TEMP
"
OU
\t\t
=
$PGENIDOMAIN
.
$user_uid
\n
";
}
...
...
@@ -304,7 +321,7 @@ print TEMP "CN\t\t= $user_uuid\n";
print
TEMP
"
emailAddress
\t
=
$user_uid
"
.
"
\@
"
.
"
$OURDOMAIN
\n
";
print
TEMP
"
\n
[ req_altname ]
\n
URI=urn:publicid:IDN+
$OURDOMAIN
"
.
"
+user+
$user_uid
\n
email=
$user_uid
"
.
"
\@
"
.
"
$OURDOMAIN
\n
";
"
+user+
$user_uid
\n
email=
$user_uid
"
.
"
\@
"
.
"
$OURDOMAIN
\n
\n
";
close
(
TEMP
)
or
fatal
("
Could not close usercert.cnf: $!
");
...
...
This diff is collapsed.
Click to expand it.
ssl/usercert.cnf.in
+
5
−
5
View file @
2b4e55e6
...
...
@@ -7,15 +7,15 @@ default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
req_extensions = request_extensions
string_mask = nombstr
oid_section = protogeni_oids
[ protogeni_oids ]
xmlrpc = 2.25.305821105408246119474742976030998643995
[ request_extensions ]
basicConstraints=critical,CA:FALSE
subjectKeyIdentifier=hash
subjectAltName=@req_altname
# Modifed for update 5.21
# This will be appended to by mkusercert.
[ req_distinguished_name ]
C = @SSLCERT_COUNTRY@
ST = @SSLCERT_STATE@
L = @SSLCERT_LOCALITY@
O = @SSLCERT_ORGNAME@
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment