From 77caa4d39503de9604869015c8b2fb21dee4bdaf Mon Sep 17 00:00:00 2001 From: JanHoefelmeyer Date: Thu, 8 Aug 2024 11:05:28 +0200 Subject: [PATCH] Another one? --- docs/scripts/createCCForITest.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/scripts/createCCForITest.sh b/docs/scripts/createCCForITest.sh index 5f7f9aa6..83e26dc7 100644 --- a/docs/scripts/createCCForITest.sh +++ b/docs/scripts/createCCForITest.sh @@ -16,7 +16,7 @@ echo "CC ####################################################################### sudo mkdir -p ~/${FOLDERNAME} cd ~/${FOLDERNAME} -certtool --generate-privkey --outfile testclient1-key.pem +sudo certtool --generate-privkey --outfile testclient1-key.pem echo ' organization = "'${ORGANAME}'" @@ -29,13 +29,13 @@ encryption_key serial = 020 expiration_days = 50 -' > gnutls-certtool.testclient1.template +' | sudo tee -a gnutls-certtool.testclient1.template -certtool --generate-certificate --load-privkey testclient1-key.pem --outfile testclient1.crt --load-ca-certificate rootca-cert.pem --load-ca-privkey rootca-key.pem --template gnutls-certtool.testclient1.template --stdout | head -1 +sudo certtool --generate-certificate --load-privkey testclient1-key.pem --outfile testclient1.crt --load-ca-certificate rootca-cert.pem --load-ca-privkey rootca-key.pem --template gnutls-certtool.testclient1.template --stdout | head -1 -certtool --load-ca-certificate rootca-cert.pem --load-certificate testclient1.crt --load-privkey testclient1-key.pem --to-p12 --p12-name "Test Client 1" --null-password --outder --outfile testclient1.p12 +sudo certtool --load-ca-certificate rootca-cert.pem --load-certificate testclient1.crt --load-privkey testclient1-key.pem --to-p12 --p12-name "Test Client 1" --null-password --outder --outfile testclient1.p12 -certtool --generate-privkey --outfile testclient2-key.pem +sudo certtool --generate-privkey --outfile testclient2-key.pem echo ' organization = "'${ORGANAME}'" @@ -48,11 +48,11 @@ encryption_key serial = 021 expiration_days = 1 -' > gnutls-certtool.testclient2.template +' | sudo tee -a gnutls-certtool.testclient2.template -certtool --generate-certificate --load-privkey testclient2-key.pem --outfile testclient2.crt --load-ca-certificate rootca-cert.pem --load-ca-privkey rootca-key.pem --template gnutls-certtool.testclient2.template --stdout | head -1 +sudo certtool --generate-certificate --load-privkey testclient2-key.pem --outfile testclient2.crt --load-ca-certificate rootca-cert.pem --load-ca-privkey rootca-key.pem --template gnutls-certtool.testclient2.template --stdout | head -1 -certtool --load-ca-certificate rootca-cert.pem --load-certificate testclient2.crt --load-privkey testclient2-key.pem --to-p12 --p12-name "Test Client 2" --null-password --outder --outfile testclient2.p12 +sudo certtool --load-ca-certificate rootca-cert.pem --load-certificate testclient2.crt --load-privkey testclient2-key.pem --to-p12 --p12-name "Test Client 2" --null-password --outder --outfile testclient2.p12 SSL_CLIENT_CERTIFICATE=$( echo "$PWD/rootca-cert.pem"