booking-microservices/scripts/self_signed_certificate_gitpod.sh
2023-01-20 18:32:35 +03:30

12 lines
322 B
Bash

#!/bin/bash
# Generate self-signed certificate
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj '/CN=localhost'
# Trust the certificate in Gitpod
sudo mkdir -p /etc/gitpod/tls/
sudo cp cert.pem /etc/gitpod/tls/
sudo cp key.pem /etc/gitpod/tls/
# Restart Gitpod
sudo gitpod restart