mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 13:36:02 +03:00
[GH-ISSUE #386] Run mkcert inside the php:x-apache container gives SSL certificate problem: unable to get local issuer certificate #256
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#256
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 @roland-d on GitHub (Jul 18, 2021).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/386
Hello,
Thank you for your work on this extension.
I have it all up and running fine on my local workstation running in Docker containers. The only issue I have is that when I run a cURL call for example from PHP to the local domain name, I get the error
SSL certificate problem: unable to get local issuer certificateI am running a Dockerfile using the
php:7.4-apacheimage.Now I understand that this happens because cURL cannot verify the certificate authority given this output:
Checking the CA Root, it shows that it is correct:
Checking if it is installed, it is:
Checking the certificate using openSSL this looks as follows:
On my local machine I also have
mkcertrunning with the same certificates from the Docker container and that works fine both in the browser and cURL:Is there anything I am missing? Could it be that the host OS is not supported?
Any insights are welcome.
@chombe commented on GitHub (Aug 18, 2021):
@roland-d did you manage to find solution for this?
I'm stuck with the same issue only using nginx image.
Thanks in advance
@roland-d commented on GitHub (Aug 19, 2021):
Hello, I have not yet found the time to build my own image yet. So i am still having the issue as well.
@roland-d commented on GitHub (Feb 15, 2022):
I have resolved this using the Cloudflare SSL Docker container.
@csuriano23 commented on GitHub (Sep 7, 2022):
@roland-d please could you provide details on how you solved this? I can't find a way the make the docker container recognize the CA installed in the local machine
@roland-d commented on GitHub (Sep 20, 2022):
@csuriano23 You need to get your generated CA into your docker machine. Remember a container knows only what is available on the inside of the container not what is on your local machine. I have not yet made the step to make my own generated CA available inside the docker container. It works when I browse from my local machine.
I used this project as reference for setting up the CF SSL: https://github.com/simplesamlphp/docker-simplesamlphp
Unfortunately I cannot help you further.
@csuriano23 commented on GitHub (Sep 21, 2022):
Thank you @roland-d . I successfully solved my issue by copying and installing the cert on the docker container