2021-08-23 14:46:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
openssl req -newkey rsa:4096 \
|
|
|
|
-x509 \
|
|
|
|
-sha256 \
|
|
|
|
-days 3650 \
|
|
|
|
-nodes \
|
|
|
|
-out discours.crt \
|
|
|
|
-keyout discours.key \
|
2021-10-28 10:42:34 +00:00
|
|
|
-subj "/C=RU/ST=Moscow/L=Moscow/O=Discours/OU=Site/CN=build.discours.io"
|
2021-10-30 23:42:04 +00:00
|
|
|
|
|
|
|
openssl x509 -in discours.crt -out discours.pem -outform PEM
|