mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 08:32:16 +01:00
15 lines
323 B
Markdown
15 lines
323 B
Markdown
Generate a valid certificate and private key:
|
|
|
|
```bash
|
|
# OpenSSL 1.1.1+
|
|
openssl req -x509 -newkey rsa:4096 -sha256 -days 9999 -nodes \
|
|
-keyout key.pem -out cert.pem -subj "/CN=localhost" \
|
|
-addext "subjectAltName=DNS:localhost,IP:127.0.0.1,IP:::1"
|
|
```
|
|
|
|
Check a certificate:
|
|
|
|
```bash
|
|
openssl x509 -in cert.pem -text
|
|
```
|