mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 10:19:34 +00:00
@@ -55,6 +55,7 @@ case $txt in
|
||||
chown -R www-data:www-data *
|
||||
url=$(grep 'DEFAULT_DIRECTORY_URL =' /home/labca/acme_tiny.py | sed -e 's/.*=[ ]*//' | sed -e 's/\"//g')
|
||||
wait_server $url
|
||||
sleep 10
|
||||
/home/labca/labca/renew
|
||||
ln -sf /home/labca/labca/cron_d /etc/cron.d/labca
|
||||
ln -sf /home/labca/labca/logrotate_d /etc/logrotate.d/labca
|
||||
|
||||
@@ -2,10 +2,16 @@ diff --git a/test/entrypoint.sh b/test/entrypoint.sh
|
||||
index 5ca9929..f18e1d8 100755
|
||||
--- a/test/entrypoint.sh
|
||||
+++ b/test/entrypoint.sh
|
||||
@@ -36,6 +36,12 @@ wait_tcp_port boulder-mysql 3306
|
||||
@@ -36,6 +36,18 @@ wait_tcp_port boulder-mysql 3306
|
||||
# create the database
|
||||
MYSQL_CONTAINER=1 $DIR/create_db.sh
|
||||
|
||||
+fl=$(pwd)/labca/setup_complete
|
||||
+while [ ! -f $fl ]; do
|
||||
+ echo "Waiting for $fl to appear..."
|
||||
+ sleep 30
|
||||
+done
|
||||
+
|
||||
+#softhsm2-util --show-slots
|
||||
+softhsm2-util --init-token --slot 0 --label "intermediate signing key (rsa)" --pin 1234 --so-pin 5678 | /bin/true
|
||||
+[ -e labca/test-ca.p8 ] && softhsm2-util --import labca/test-ca.p8 --id 333333 --force --token "intermediate signing key (rsa)" --pin 1234 --so-pin 5678 --label 'intermediate_key'
|
||||
|
||||
@@ -95,3 +95,5 @@ openssl rsa -in $PKI_ROOT_CERT_BASE.key -pubout > test-root.pubkey.pem 2>/dev/nu
|
||||
openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in test-root.key -out test-root.p8
|
||||
|
||||
chown -R `ls -l PKI.md | cut -d" " -f 3,4 | sed 's/ /:/g'` .
|
||||
|
||||
[ -f setup_complete ] || touch setup_complete
|
||||
|
||||
Reference in New Issue
Block a user