Updated README to reflect automatic certificate generation

This commit is contained in:
Emii Tatsuo 2020-11-25 15:44:20 -05:00
parent a4f1017c5f
commit 0b0d925979
Signed by: Emi
GPG key ID: 68FAB2E2E6DFC98B

View file

@ -22,13 +22,13 @@ kochab = { git = "https://github.com/Alch-Emi/kochab.git" }
# Generating a key & certificate # Generating a key & certificate
Run By default, kochab enables the `certgen` feature, which will automatically generate a certificate for you. All you need to do is run the program once and follow the prompts printed to stdout. You can override this behavior by disabling the feature, or by using the methods in the `Builder`.
If you want to generate a certificate manually, you can use the command:
```sh ```sh
mkdir cert && cd cert mkdir cert && cd cert
openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
``` ```
and enter your domain name (e.g. "localhost" for testing) as Common Name (CN).
Alternatively, if you want to include multiple domains add something like `-addext "subjectAltName = DNS:localhost, DNS:example.org"`.
[northstar]: https://github.com/panicbit/northstar "Northstar GitHub" [northstar]: https://github.com/panicbit/northstar "Northstar GitHub"