Use -new during OpenSSL certificate generation (#11199)

As per https://stackoverflow.com/a/3758443/8156177, OpenSSL expects a certificate via STDIN. 
`-new` will allow a new certificate to be generated instead.
This commit is contained in:
George Tsatsis 2021-01-11 12:24:50 +02:00 committed by GitHub
parent 828602d672
commit e8176fe978
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,7 +150,7 @@ DNS.1 = localhost
Run `openssl` by specifying the configuration file and enter a passphrase if prompted:
```sh
openssl req -x509 -nodes -days 730 -key private.key -out public.crt -config openssl.conf
openssl req -new -x509 -nodes -days 730 -key private.key -out public.crt -config openssl.conf
```
### <a name="using-gnu-tls"></a>3.3 Use GnuTLS (for Windows) to Generate a Certificate