Using Podman Desktop behind a proxy requiring custom Certificate Authorities (CA) on macOS and Windows
You can configure Podman Desktop to run behind a proxy requiring custom Certificate Authorities (CA), such as self-signed certificates. The configuration applies to the Podman engine, but not to your containers.
Prerequisites
- Your proxy URL:
<your.proxy.tld:port> - Your proxy Certificate Authorities (CA) is stored in your home directory, in the
proxy_ca.pemfile, in Privacy-Enhanced Mail (PEM) format.
Procedure
-
Go to Settings > Proxy, and set your proxy URL:
- Proxy configuration enabled: yes
- Web Proxy (HTTP):
<your.proxy.tld:port> - Secure Web Proxy (HTTPS):
<your.proxy.tld:port> - Click the Update button
-
Copy the certificate to the Podman machine:
$ cat proxy_ca.pem | podman machine ssh podman-machine-default "cat > proxy_ca.pem" -
Open a shell prompt on the Podman machine:
$ podman machine ssh podman-machine-default -
Add the custom Certificate Authorities (CA) for your proxy:
$ sudo cp proxy_ca.pem /etc/pki/ca-trust/source/anchors/
$ sudo update-ca-trust -
Go to Settings > Resources and restart the Podman machine.
Verification
- Go to Images.
- Click Pull an image.
- Image to Pull:
bash - Click Pull image.
- Podman Desktop reports
Download complete.