blob: e2c9e777c84934e543084de697659d981e7a9dd6 (
plain)
1
2
3
4
5
6
7
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
|