Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
3357e62b
Commit
3357e62b
authored
Nov 07, 2011
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove hardwired references to Utah, and replace with configure variables.
Do not run this script when NoLogins is on.
parent
e944f2e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
protogeni/scripts/getcacerts.in
protogeni/scripts/getcacerts.in
+14
-6
No files found.
protogeni/scripts/getcacerts.in
View file @
3357e62b
...
...
@@ -28,6 +28,7 @@ my $TBOPS = "@TBOPSEMAIL@";
my
$TBLOGS
=
"
@TBLOGSEMAIL
@
";
my
$PGENIDOMAIN
=
"
@PROTOGENI_DOMAIN
@
";
my
$PGENISUPPORT
=
@PROTOGENI_SUPPORT@
;
my
$PROTOGENI_WEBSITE
=
"
@PROTOGENI_WEBSITE
@
";
my
$FETCH
=
"
/usr/bin/fetch
";
my
$OPENSSL
=
"
/usr/bin/openssl
";
my
$POSTCRL
=
"
$TB
/sbin/protogeni/postcrl
";
...
...
@@ -52,11 +53,18 @@ use lib "@prefix@/lib";
use
libdb
;
use
libtestbed
;
use
libaudit
;
use
libEmulab
;
if
(
$UID
!=
0
)
{
fatal
("
Must be root to run this script
\n
");
}
#
# Do not run when the testbed is disabled.
#
exit
(
0
)
if
(
NoLogins
());
#
# Check args.
#
...
...
@@ -95,18 +103,18 @@ else {
}
#
# Fetch the ca bundle from
Utah
. These are public keys ...
# Fetch the ca bundle from
the CH
. These are public keys ...
#
system
("
$FETCH
-q -o /tmp/genica.bundle.$$
"
.
"
http://
boss.emulab.net
/genica.bundle
")
==
0
or
fatal
("
Could not fetch genica bundle from
Utah
");
"
http://
$PROTOGENI_WEBSITE
/genica.bundle
")
==
0
or
fatal
("
Could not fetch genica bundle from
$PROTOGENI_WEBSITE
");
#
# Fetch the crl bundle from
Utah
. These are public keys ...
# Fetch the crl bundle from
the CH
. These are public keys ...
#
system
("
$FETCH
-q -o /tmp/genicrl.bundle.$$
"
.
"
http://
boss.emulab.net
/genicrl.bundle
")
==
0
or
fatal
("
Could not fetch genicrl bundle from
Utah
");
"
http://
$PROTOGENI_WEBSITE
/genicrl.bundle
")
==
0
or
fatal
("
Could not fetch genicrl bundle from
$PROTOGENI_WEBSITE
");
system
(
"
/bin/cat
$TB
/etc/extracerts.bundle >> /tmp/genica.bundle.$$
"
.
"
2> /dev/null
"
);
...
...
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