diff options
Diffstat (limited to '')
-rwxr-xr-x | ci/gen-certificate.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ci/gen-certificate.sh b/ci/gen-certificate.sh new file mode 100755 index 0000000..e2c9e77 --- /dev/null +++ b/ci/gen-certificate.sh @@ -0,0 +1,8 @@ +#!/bin/sh -e +# Generate a self-signed certificate for testing purposes. + +mkdir -p cert +keyfile=cert/server.key +certfile=cert/server.crt + +openssl req -newkey rsa:2048 -x509 -nodes -keyout "$keyfile" -new -out "$certfile" -subj /CN=localhost |