Skip to content

Commit

Permalink
Generate cert for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexy2 committed Aug 29, 2024
1 parent 99dc802 commit 79f50de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-caddy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ jobs:
run: caddy validate --config caddy/Caddyfile
- name: Enable TLS
run: |
rm caddy/off.tls.Caddyfile
mv caddy/on-tls.Caddyfile caddy/on.tls.Caddyfile
cd caddy
rm off.tls.Caddyfile
mv on-tls.Caddyfile on.tls.Caddyfile
openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 365 -config openssl.cnf -extensions req_ext -subj "/C=US/CN=orbitar.test" -keyout certs/orbitar.key -out certs/orbitar.crt
- name: Validate Caddyfile with TLS
env:
SERVER_HOST: https://orbitar.test
Expand Down

0 comments on commit 79f50de

Please sign in to comment.