mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-10 15:47:36 +02:00
Move examples repo into main repo (#1102)
This commit is contained in:
parent
b79e73b8b8
commit
ca6715d3c5
28 changed files with 851 additions and 0 deletions
18
examples/mutual-tls/scripts/generate_certs.sh
Executable file
18
examples/mutual-tls/scripts/generate_certs.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
# https://github.com/square/certstrap
|
||||
certstrap init --common-name good-ca
|
||||
certstrap init --common-name bad-ca
|
||||
|
||||
# pomerium client cert
|
||||
certstrap request-cert --common-name pomerium
|
||||
certstrap sign pomerium --CA good-ca
|
||||
|
||||
# downstream app
|
||||
certstrap request-cert -ip 127.0.0.1 -domain web-app,localhost
|
||||
certstrap sign web-app --CA good-ca
|
||||
|
||||
certstrap request-cert --common-name good-curl
|
||||
certstrap sign good-curl --CA good-ca
|
||||
|
||||
certstrap request-cert --common-name bad-curl
|
||||
certstrap sign bad-curl --CA bad-ca
|
Loading…
Add table
Add a link
Reference in a new issue