mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-12 03:12:11 +08:00
12 lines
322 B
Bash
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 |