File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ echo -e "$NOTE Creating directory structure"
55
55
56
56
mkdir html/
57
57
mkdir html/ca/
58
+ mkdir html/ca/ssh
58
59
59
60
if openssl verify -CAfile ca/ca.crt ca/ca.crt > /dev/null 2>&1 ; then
60
61
echo -e " $NOTE Creating index.html for root CA"
@@ -70,9 +71,11 @@ if openssl verify -CAfile ca/ca.crt ca/ca.crt >/dev/null 2>&1; then
70
71
71
72
cp ca/ca.crt " html/ca/${CA_HTML_ROOT_NAME} .crt"
72
73
cp ca/ca.crl " html/ca/${CA_HTML_ROOT_NAME} .crl"
74
+ cp ca/ssh/ca.ssh.pub " html/ca/ssh/${CA_HTML_ROOT_NAME} .pub"
73
75
74
76
ln -s " ${CA_HTML_ROOT_NAME} .crt" " html/ca/$CA_NAME .crt"
75
77
ln -s " ${CA_HTML_ROOT_NAME} .crl" " html/ca/$CA_NAME .crl"
78
+ ln -s " ${CA_HTML_ROOT_NAME} .pub" " html/ca/ssh/$CA_NAME .pub"
76
79
77
80
echo -e " $SUCC html directory successfully created"
78
81
else
96
99
cp ca/root.crt " html/ca/${CA_HTML_ROOT_NAME} .crt"
97
100
cp ca/ca.crt " html/ca/${CA_HTML_SIGN_NAME} .crt"
98
101
cp ca/ca.crl " html/ca/${CA_HTML_SIGN_NAME} .crl"
102
+ cp ca/ssh/ca.ssh.pub " html/ca/ssh/${CA_HTML_SIGN_NAME} .pub"
99
103
100
104
ln -s " ${CA_HTML_SIGN_NAME} .crt" " html/ca/$CA_NAME .crt"
101
105
ln -s " ${CA_HTML_SIGN_NAME} .crl" " html/ca/$CA_NAME .crl"
106
+ ln -s " ${CA_HTML_SIGN_NAME} .pub" " html/ca/ssh/$CA_NAME .pub"
102
107
103
108
echo -e " $SUCC html directory successfully created"
104
109
fi
You can’t perform that action at this time.
0 commit comments