[GH-ISSUE #192] mkcert -install (v1.4.0) fails to run in Ubuntu 16.04: SEC_ERROR_READ_ONLY #122

Closed
opened 2026-02-25 22:32:39 +03:00 by kerem · 4 comments
Owner

Originally created by @rfay on GitHub (Aug 19, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/192

Ubuntu 16.04, linuxbrew-installed mkcert v1.4.0, mkcert -install fails with certutil error:

mkcert -install
Created a new local CA at "/home/circleci/.local/share/mkcert" 💥
The local CA is now installed in the system trust store! ⚡️
ERROR: failed to execute "certutil -A": exit status 255

certutil: function failed: SEC_ERROR_READ_ONLY: security library: read-only database.
Originally created by @rfay on GitHub (Aug 19, 2019). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/192 Ubuntu 16.04, linuxbrew-installed mkcert v1.4.0, mkcert -install fails with certutil error: ``` mkcert -install Created a new local CA at "/home/circleci/.local/share/mkcert" 💥 The local CA is now installed in the system trust store! ⚡️ ERROR: failed to execute "certutil -A": exit status 255 certutil: function failed: SEC_ERROR_READ_ONLY: security library: read-only database. ```
kerem closed this issue 2026-02-25 22:32:40 +03:00
Author
Owner

@rfay commented on GitHub (Aug 19, 2019):

On Debian 9 and Debian 10 this doesn't seem to be a problem AFAICT
On Ubuntu 18.04, it prompts for sudo password and succeeds.
On Fedora 30 it is successful without need for sudo (apparently)

<!-- gh-comment-id:522781921 --> @rfay commented on GitHub (Aug 19, 2019): On Debian 9 and Debian 10 this doesn't seem to be a problem AFAICT On Ubuntu 18.04, it prompts for sudo password and succeeds. On Fedora 30 it is successful without need for sudo (apparently)
Author
Owner

@rfay commented on GitHub (Aug 20, 2019):

On Manjaro (and probably arch the same) using linuxbrew it prompts for sudo password successfully and works.

<!-- gh-comment-id:523109730 --> @rfay commented on GitHub (Aug 20, 2019): On Manjaro (and probably arch the same) using linuxbrew it prompts for sudo password successfully and works.
Author
Owner

@rfay commented on GitHub (Aug 20, 2019):

I think #193 will solve this problem in a fairly generic way. It might also be possible and simpler to always use sudo on certutil.

<!-- gh-comment-id:523185993 --> @rfay commented on GitHub (Aug 20, 2019): I think #193 will solve this problem in a fairly generic way. It might also be possible and simpler to always use sudo on certutil.
Author
Owner

@topher200 commented on GitHub (Oct 18, 2019):

I'm experiencing this issue when testing an Azure pipeline on both Ubuntu 16.04 and 18.04.

+ mkcert -install --cert-file certificate.pem --key-file key.pem lh.wordstream.com
Created a new local CA at "/home/vsts/.local/share/mkcert" 💥
The local CA is now installed in the system trust store! ⚡️
ERROR: failed to execute "certutil -A": exit status 255

certutil: function failed: SEC_ERROR_READ_ONLY: security library: read-only database.

Using @rfay's binaries from #193 resolved the issue for me.

wget https://github.com/rfay/mkcert/releases/download/v1.4.1-alpha1/mkcert-v1.4.1-alpha1-linux-amd64 -O bin/mkcert
<!-- gh-comment-id:543818588 --> @topher200 commented on GitHub (Oct 18, 2019): I'm experiencing this issue when testing an Azure pipeline on both Ubuntu 16.04 and 18.04. ``` + mkcert -install --cert-file certificate.pem --key-file key.pem lh.wordstream.com Created a new local CA at "/home/vsts/.local/share/mkcert" 💥 The local CA is now installed in the system trust store! ⚡️ ERROR: failed to execute "certutil -A": exit status 255 certutil: function failed: SEC_ERROR_READ_ONLY: security library: read-only database. ``` Using @rfay's binaries from #193 resolved the issue for me. ``` wget https://github.com/rfay/mkcert/releases/download/v1.4.1-alpha1/mkcert-v1.4.1-alpha1-linux-amd64 -O bin/mkcert ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#122
No description provided.