FiloSottile / FiloSottile/mkcert

NET::ERR_CERT_AUTHORITY_INVALID after a while of working properly

Open
#424 6 comments 3 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
59.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

Hi

I have been using `mkcert` for some months now and everything was working great.

However, today I suddenly saw the `NET::ERR_CERT_AUTHORITY_INVALID` error.

I have not changed `mkcert` anyhow.

I tried to verify my certificate, using `openssl`:

```
openssl verify --verbose /project/cert.pem
```
And this is the result:
```
O = mkcert development certificate, OU = root@MyLaptop
error 20 at 0 depth lookup: unable to get local issuer certificate
error /project/cert.pem: verification failed
```

I tried to uninstall `mkcert`, but since I have installed it outside **apt**, I did not know how to uninstall it. Here's my installation script:

```
sudo apt install libnss3-tools
wget https://github.com/FiloSottile/mkcert/releases/download/v1.4.3/mkcert-v1.4.3-linux-amd64
sudo cp mkcert-v1.4.3-linux-amd64 /usr/local/bin/mkcert
sudo chmod +x /usr/local/bin/mkcert
mkcert -install
```

I ran `mkcert -uninstall` and closed Chrome and ran `mkcert -install` and reopened Chrome, but still no results.

What should I do? How can I fix this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.