FiloSottile / FiloSottile/mkcert

Invalid CA in arch linux

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

Description

## Environment

* Operating system (including version): `Linux archlinux 5.18.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 30 May 2022 17:53:11 +0000 x86_64 GNU/Linux`
* mkcert version (from `mkcert -version`): `(devel)`
* Server (where the certificate is loaded): webpack-dev-server
* Client (e.g. browser, CLI tool, or script):
* Brave 1.39.111 Chromium: 102.0.5005.61 (Official Build) (64-bit)
* Google Chrome 102.0.5005.61 (Official Build) (64-bit)
* Firefox 101.0

## What you did
Ran `mkcert -install` and `mkcert localhost` as instructed to generate valid certificate.
![image](https://user-images.githubusercontent.com/63046776/172155302-ed698281-d5e3-4ec1-84ff-b883f28c18fc.png)

Verified that certificate authority was added to all browsers.

Brave
![image](https://user-images.githubusercontent.com/63046776/172156248-c4157a4c-05a0-484b-b1d7-f784b3ee8f70.png)

Chrome
![image](https://user-images.githubusercontent.com/63046776/172156337-3573f2e1-3811-4955-8124-f3545fd4216f.png)

Firefox
![image](https://user-images.githubusercontent.com/63046776/172156556-82c5447d-15f9-49a8-8340-21a640c145f2.png)

Added the following lines to my `.env` file within my create-react-app project to make the dev server aware of the certificates.
```
HTTPS=true
SSL_CERT_FILE=.cert/localhost.pem
SSL_KEY_FILE=.cert/localhost-key.pem
```

## What went wrong
`NET::ERR_CERT_AUTHORITY_INVALID` in brave and chrome
![image](https://user-images.githubusercontent.com/63046776/172156724-f2e65f55-e30a-435a-83be-0b5d6c247cde.png)
![image](https://user-images.githubusercontent.com/63046776/172156767-9c86a509-bebd-4606-acf5-1045a490198d.png)

`MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT` in firefox
![image](https://user-images.githubusercontent.com/63046776/172156841-0d24c822-7faf-4f39-a6b6-ea31e7dae852.png)

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.