How to Fix Postman SSL Certificate Error
In this tutorial, you'll learn about How to Fix Postman SSL Certificate Error. We cover key concepts, practical examples, and best practices.
The Problem
Postman shows Error: unable to verify the first certificate or Error: self-signed certificate in certificate chain when sending requests to an HTTPS API. This happens when the server uses a self-signed certificate, an internal corporate CA, or an incomplete certificate chain. Postman uses the operating system's certificate store, and if the server's CA is not trusted by the OS, Postman refuses the connection.
Quick Fix
1. Disable SSL verification temporarily (for testing only)
Go to:
File → Settings → General → Request Certificate Validation → Toggle OFF
Or use the following VS Code setting if using Postman in VS Code:
{
"postman.sslVerification": false
}
Important: Re-enable verification after testing. Never leave it disabled.
2. Add a custom CA certificate to Postman
Settings → Certificates → CA Certificates
→ Click "Add Certificate"
→ Browse to your internal CA's .crt or .pem file
→ "Add"
Test with curl using the same CA:
curl --cacert /path/to/ca-cert.crt https://internal-api.example.com/health
Expected output:
{"status": "healthy"}
3. Import a client certificate for mutual TLS (mTLS)
If the server requires a client certificate:
Settings → Certificates → Client Certificates
→ "Add Certificate"
Domain: api.example.com
PFX File: /path/to/client.p12
Passphrase: your-password
4. Test from the terminal with the same certificates
curl --cert client.p12:password \
--cacert ca-cert.crt \
https://api.example.com/health
Expected output:
{"status": "ok"}
5. Inspect the full certificate chain
openssl s_client -connect api.example.com:443 -showcerts < /dev/null 2>&1
Expected output:
Certificate chain
0 s:CN = api.example.com
i:CN = My Internal CA
1 s:CN = My Internal CA
i:CN = My Root CA
If the chain is incomplete (no intermediate certificate), ask the server team to fix the SSL configuration.
6. Add the certificate to the OS trust store for Postman to pick up
sudo cp ca-cert.crt /usr/local/share/ca-certificates/internal-ca.crt
sudo update-ca-certificates
Then restart Postman. The certificate is now trusted system-wide and Postman will use it automatically.
7. Use Postman's proxy settings for corporate environments
If your company uses a proxy that strips TLS, configure it:
File → Settings → Proxy
→ Toggle "Use custom proxy configuration"
→ Enter proxy host and port
→ Add proxy bypass rules as needed
Prevention
- Add internal CA certificates to Postman's trusted store instead of globally disabling SSL verification
- Use environment variables in Postman for certificate paths and passwords across different environments
- Verify the server's SSL chain with
openssl s_clientbefore debugging in Postman to isolate the issue - Store client certificates and passphrases in a secure vault, never in shared Postman collections
- Always re-enable SSL certificate validation when you finish debugging — do not leave it disabled permanently
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro