Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erlang/docker-erlang-example
HowTo Erlang in Docker
https://github.com/erlang/docker-erlang-example
Last synced: 2 months ago
JSON representation
HowTo Erlang in Docker
- Host: GitHub
- URL: https://github.com/erlang/docker-erlang-example
- Owner: erlang
- Created: 2017-02-16T09:24:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T16:39:59.000Z (almost 2 years ago)
- Last Synced: 2024-09-30T03:41:30.090Z (2 months ago)
- Language: Erlang
- Size: 185 KB
- Stars: 163
- Watchers: 31
- Forks: 37
- Open Issues: 3
-
Metadata Files:
- Readme: README-CERTS.md
Awesome Lists containing this project
- awesome-ccamel - erlang/docker-erlang-example - HowTo Erlang in Docker (Erlang)
README
## Generating Certificate
Generate certificates in subdirectory `ssl`.
### Root CA
$ openssl genrsa -out dockerwatch-ca.key 4096
$ openssl req -x509 -new -nodes -key dockerwatch-ca.key -sha256 -days 1024 -out dockerwatch-ca.pem
### Server Certificate
$ openssl genrsa -out dockerwatch-server.key 4096
Certificate signing request
$ openssl req -new -key dockerwatch-server.key -out dockerwatch-server.csr
The most important field: `Common Name (eg, YOUR name) []: localhost`. We use localhost in this example.
### Sign it
$ openssl x509 -req -in dockerwatch-server.csr -CA dockerwatch-ca.pem -CAkey dockerwatch-ca.key -CAcreateserial -out dockerwatch-server.pem -days 500 -sha256