1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Fix: Add sudo to commands that would fail due to missing permissions.

This commit is contained in:
JanHoefelmeyer 2024-08-08 11:44:16 +02:00
parent 8feddc70e1
commit e603c525c1
7 changed files with 22 additions and 22 deletions

View file

@ -10,7 +10,7 @@ set -e
pushd ~/${FOLDERNAME}
certtool --generate-privkey --outfile testserver-key.pem
sudo certtool --generate-privkey --outfile testserver-key.pem
echo '
organization = "'${ORGANAME}'"
@ -27,11 +27,11 @@ dns_name = "localhost"
serial = 010
expiration_days = 50
' > gnutls-certtool.testserver.template
' sudo tee gnutls-certtool.testserver.template
certtool --generate-certificate --load-privkey testserver-key.pem --outfile testserver.crt --load-ca-certificate rootca-cert.pem --load-ca-privkey rootca-key.pem --template gnutls-certtool.testserver.template --stdout | head -1
sudo certtool --generate-certificate --load-privkey testserver-key.pem --outfile testserver.crt --load-ca-certificate rootca-cert.pem --load-ca-privkey rootca-key.pem --template gnutls-certtool.testserver.template --stdout | head -1
cat testserver.crt rootca-cert.pem >bundle.crt
cat testserver.crt rootca-cert.pem | sudo tee bundle.crt
export SSL_CERTIFICATE=$(
echo "$PWD/bundle.crt"