Skip to content

mkcert -install (v1.4.0) fails to run in Ubuntu 16.04: SEC_ERROR_READ_ONLY #192

Closed

Description

@rfay

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.

Activity

  1. rfay commented on Aug 19, 2019

    @rfay
    Author

    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)

  2. rfay commented on Aug 20, 2019

    @rfay
    Author

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

  3. rfay commented on Aug 20, 2019

    @rfay
    Author

    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.

  4. topher200 commented on Oct 18, 2019

    @topher200

    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
    
  5. added 3 commits that reference this issue on Nov 9, 2019
    0ddde5f
    edc487d
    28654f2
  6. added a commit that references this issue on Nov 9, 2019
    1b4ad6c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions