https://github.com/vitejs/vite-plugin-basic-ssl
Basic https setup using an automatically generated self-signed certificate
https://github.com/vitejs/vite-plugin-basic-ssl
Last synced: 5 months ago
JSON representation
Basic https setup using an automatically generated self-signed certificate
- Host: GitHub
- URL: https://github.com/vitejs/vite-plugin-basic-ssl
- Owner: vitejs
- License: mit
- Created: 2022-07-06T17:00:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-13T17:15:54.000Z (5 months ago)
- Last Synced: 2026-01-13T19:21:36.223Z (5 months ago)
- Language: TypeScript
- Size: 447 KB
- Stars: 474
- Watchers: 4
- Forks: 25
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @vitejs/plugin-basic-ssl [](https://npmjs.com/package/@vitejs/plugin-basic-ssl)
A plugin to generate untrusted certificates which still allows to access the page after proceeding a wall with warning.
In most scenarios, it is recommended to generate a secure trusted certificate instead and use it to configure [`server.https`](https://vitejs.dev/config/server-options.html#server-https)
## Usage
```js
// vite.config.js
import basicSsl from '@vitejs/plugin-basic-ssl'
export default {
plugins: [
basicSsl({
/** name of certification */
name: 'test',
/** custom trust domains */
domains: ['*.custom.com'],
/** custom certification directory */
certDir: '/Users/.../.devServer/cert',
}),
],
}
```
## License
MIT