Files
swift-nio/docker/gen-cert.sh
T
Max (Swift) Moiseev 8d4eb477ed Xenial and compose
* Docker work

- New image based on xenial.
- Simplified workflow with docker-compose
- Update the readme with docker-compose section
- Move docker related stuff to a dedicated folder

* Add a gen-cert.sh to the container image

* Document certificate generation and how to test all sample servers
2017-11-09 21:34:51 -08:00

9 lines
239 B
Bash
Executable File

#!/bin/bash
set -x
set -euo pipefail
openssl genrsa -aes256 -out key.pem -passout pass:temp 2048
openssl rsa -in key.pem -passin pass:temp -out key.pem
openssl req -x509 -key key.pem -out cert.pem -days 10950 -new -subj "/CN=localhost/"