vitejs/vite-plugin-basic-ssl

Basic https setup using an automatically generated self-signed certificate

515

stars

115

commits

TypeScript

primary language

Sep 10, 2026

updated

Browse cluster: Vite and modern frontend build tooling

README

@vitejs/plugin-basic-ssl npm

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

Usage

// 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'],
      /** optional, days before certificate expires */
      ttlDays: 30,
      /** custom certification directory */
      certDir: '/Users/.../.devServer/cert',
    }),
  ],
}

License

MIT

Contributors

renovate[bot]

60 commits

sapphi-red

15 commits

patak-cat

14 commits

bluwy

13 commits

vitejs/vite-plugin-basic-ssl

Basic https setup using an automatically generated self-signed certificate

515

stars

115

commits

TypeScript

primary language

Sep 10, 2026

updated

Browse cluster: Vite and modern frontend build tooling

README

@vitejs/plugin-basic-ssl npm

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

Usage

// 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'],
      /** optional, days before certificate expires */
      ttlDays: 30,
      /** custom certification directory */
      certDir: '/Users/.../.devServer/cert',
    }),
  ],
}

License

MIT

Contributors

renovate[bot]

60 commits

sapphi-red

15 commits

patak-cat

14 commits

bluwy

13 commits

Languages

TypeScript

89.2%

CSS

8.7%

HTML

2.1%