https://github.com/avin/certs
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/avin/certs
- Owner: avin
- Created: 2020-07-24T20:04:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T15:54:18.000Z (almost 3 years ago)
- Last Synced: 2025-05-16T12:49:18.705Z (8 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Certificates for localhost development
## Install
```js
npm install localhost-certs
```
Install `rootCA.crt` or `rootCA.pem` in trusted root certificates
Password for root cert: `12345678`
## Example of usage
Configure your web dev-server
```js
https = {
key: fs.readFileSync('./node-modules/localhost-certs/files/server.key', 'utf8'),
cert: fs.readFileSync('./node-modules/localhost-certs/files/server.crt', 'utf8'),
};
```
## More
* [vite-plugin-localhost-certs](https://github.com/avin/vite-plugin-localhost-certs)