-
-
Save karthickvkumar/885fe6e5f3cc8304995edcd6d516d89d to your computer and use it in GitHub Desktop.
Using Angular CLI and self-signed SSL Certificate to serve over HTTPS in localhost
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
[req] | |
default_bits = 2048 | |
prompt = no | |
default_md = sha256 | |
x509_extensions = v3_req | |
distinguished_name = dn | |
[dn] | |
C = IN | |
ST = India | |
L = India | |
O = My Organisation | |
OU = My Organisational Unit | |
emailAddress = email@domain.com | |
CN = localhost | |
[v3_req] | |
subjectAltName = @alt_names | |
[alt_names] | |
DNS.1 = localhost |
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 -new -x509 -newkey rsa:2048 -sha256 -nodes -keyout localhost.key -days 3560 -out localhost.crt -config certificate.cnf |
Download OpenSSL:
https://slproweb.com/products/Win32OpenSSL.html
Certificate Instation Link:
https://www.youtube.com/watch?v=OWjVXb7-mSU
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ng serve --ssl --ssl-cert C:\Arun\angular-https\localhost.crt --ssl-key C:\angular-https\localhost.key