Skip to content

Commit

Permalink
try custom ca cert
Browse files Browse the repository at this point in the history
  • Loading branch information
nesmabadr committed Nov 11, 2024
1 parent 34cf889 commit b3ad6de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/tests/setup_https_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ DNS.1 = localhost
IP.1 = 127.0.0.1
EOF


echo "Generating self-signed certificate..."
echo "Generating certificate..."
openssl req -x509 -newkey rsa:2048 -keyout $KEY_FILE -out $CERT_FILE -days 30 -nodes -config openssl.cnf

sudo cp $CERT_FILE /etc/ssl/certs/
sudo update-ca-certificates
cp $CERT_FILE /usr/local/share/ca-certificates/
update-ca-certificates

#sudo cp $CERT_FILE /etc/ssl/certs/
#sudo update-ca-certificates

# Start Python HTTPS server
echo "Serving $DIRECTORY_TO_SERVE on https://localhost:$PORT"
Expand Down

0 comments on commit b3ad6de

Please sign in to comment.