mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 13:36:02 +03:00
[GH-ISSUE #219] How to install Root CA to puppeteer's chromium? #143
Labels
No labels
TLS stack issue
Windows
bug
duplicate
duplicate
enhancement
help wanted
help wanted
pull-request
question
question
root store
waiting for info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mkcert#143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jedie on GitHub (Nov 13, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/219
A simple
mkcert -installisn't enough to "inject" the Root CA to Chromium from puppeteer.Anybody have any good advice?
EDIT: Note: I run puppeteer in docker, maybe this is the problem. Whatever. The problem is that
~/.pki/nssdbdoesn't exist. So i came to this work-a-round:And now, the Chromium called via puppeteer can verify the ssl certificates and
'--ignore-certificate-errors'is not needed, any more.@radum commented on GitHub (Mar 18, 2021):
@jedie When you say you did that workaround, you mean in your docker file, or on the host machine?
@masterzen commented on GitHub (Aug 26, 2021):
In my own case, the workaround wasn't working, until I found out that chromium tries to open the NSS db at
/tmp/.pki/nssdbinstead of~/.pki/nssdb.Since
mkcert -installassumes.pki/nssdbto be anchored to$HOMEit can be fixed with this modification: