Closed valentin- closed 1 year ago
I have no idea about this,please refer to https://github.com/FiloSottile/mkcert/issues
I'm running into the same issue on Ubuntu.
The local CA is already installed in the system trust store! 👍
ERROR: failed to execute "certutil -A -d sql:/etc/pki/nssdb": exit status 255
certutil: function failed: SEC_ERROR_BAD_DATABASE: security library: bad database.
at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)
node: 18.16.0 npm: 9.6.7 vite: 4.3.6 vite-plugin-mkcert: 1.15.0
When i try to manually run mkcert -install
I get this error:
Created a new local CA 💥
The local CA is now installed in the system trust store! ⚡️
ERROR: failed to execute "certutil -A -d sql:/etc/pki/nssdb": exit status 255
certutil: function failed: SEC_ERROR_BAD_DATABASE: security library: bad database.
So it seems like an issue with mkcert itself.
This helped me to get it running: https://github.com/FiloSottile/mkcert/issues/83#issuecomment-438428315
Describe the bug
Hi, running
vite
throws following error. I'm not sure if this is a local issue or related to the mkcert plugin.As a workaround I renamed /etc/pki/nssdb, run vite and generate the certificates, revert folder renaming.
Did you experience this issue and got a better solution?
Thanks!
Reproduction
System Info
Output of
npx envinfo --system --npmPackages vite,vite-plugin-mkcert --binaries --browsers
:Used package manager:
Logs