Last active
October 3, 2020 18:13
-
-
Save komly/5fb77488c58ffec880f67e48d16f3608 to your computer and use it in GitHub Desktop.
self signed sertificate valid for chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl req -x509 -newkey rsa:2048 -nodes -keyout=test_key.pem -out test.pem -days=365 -subj='/CN=test.ru' -reqexts SAN -extensions SAN -config <(cat /usr/lib/ssl/openssl.cnf \ | |
<(printf '[SAN]\nsubjectAltName=@alt_names\n[alt_names]\nDNS.1 = test.ru\nDNS.2 = *.test.ru')) -sha256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment