https://github.com/fraigo/https-localhost-ssl-certificate
Create a local trusted certificate for a local HTTPS server (https://localhost)
https://github.com/fraigo/https-localhost-ssl-certificate
express-js https-server ssl ssl-certificates ssl-support
Last synced: 8 months ago
JSON representation
Create a local trusted certificate for a local HTTPS server (https://localhost)
- Host: GitHub
- URL: https://github.com/fraigo/https-localhost-ssl-certificate
- Owner: fraigo
- Created: 2019-03-06T17:21:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-06T17:40:43.000Z (almost 7 years ago)
- Last Synced: 2025-04-20T15:43:30.583Z (8 months ago)
- Topics: express-js, https-server, ssl, ssl-certificates, ssl-support
- Language: Shell
- Size: 1.95 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# https-localhost-ssl-certificate
Create a local trusted certificate for a local HTTPS server (https://localhost)
## Overview
This script can create local generated SSL certificates to be used in a local web server environment (For example: Node.js/Express)
## Requirements
* `openssl` library to generate certificates and keys
* A local HTTPS-enabled web server to test your certificate
## Certificate Instalation
* Modify the file `server.csr.cnf` to match your country, state company, organization details
* `C=[2-letter Country Code]`
* `ST=[State/Province]`
* `L=[Location/City]`
* `O=[Organization/Company]`
* `OU=[Organizational Unit]`
* `emailAddress=[admin@email]`
* `CN=localhost` (You may keep this value unless you are securing a different local host name)
* Execute the script `sslcert.sh`, to generate `server.crt` and `server.key`
* Put thsese files accesible to configure your web server
* `server.key` as the private key
* `server.crt` as the server certificate
## References
https://medium.freecodecamp.org/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec