mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
24 lines
585 B
Bash
24 lines
585 B
Bash
#!/usr/bin/env bash
|
|
|
|
DOMAIN=example.com
|
|
EMAIL=info@example.com
|
|
|
|
docker run -it --rm -v $(pwd)/letsencrypt:/letsencrypt --user $(id -u):$(id -g) certbot/certbot certonly \
|
|
--config-dir /letsencrypt/config \
|
|
--work-dir /letsencrypt/work \
|
|
--logs-dir /letsencrypt/logs \
|
|
--manual \
|
|
--preferred-challenges=dns \
|
|
--email $EMAIL \
|
|
--agree-tos \
|
|
-d $DOMAIN \
|
|
-d *.$DOMAIN \
|
|
-d *.gitlab.$DOMAIN \
|
|
-d *.gitpod.$DOMAIN \
|
|
-d *.ws.gitpod.$DOMAIN
|
|
|
|
|
|
find letsencrypt/config/live -name "*.pem" -exec cp {} ./ \;
|
|
|
|
openssl dhparam -out dhparams.pem 2048
|