In addition to capturing HTTP traffic, you can use the Postman's built-in proxy to inspect HTTPS communication from your Android, iOS, Linux, macOS, and Windows devices.
You must install the postman-proxy-ca.crt
certificate on your device to be able to capture secure HTTP traffic. First, set up the proxy in Postman. Then follow the instructions below to install the required security certificate on the target devices.
You can deactivate or remove the certificate from your device if you no longer need to capture HTTPS requests.
If you're on Windows and using Postman v10.18 or later, the Postman security certificate is automatically installed on your computer the first time you start the proxy. Also, you don't need to install OpenSSL. To learn more, go to Capturing requests with the Postman proxy.
Before you install the postman-proxy-ca.crt
certificate, you must install the OpenSSL module.
Postman uses OpenSSL to generate certificate-key pairs. For Postman to be able to generate the postman-proxy-ca.crt
certificate, the OpenSSL module must be installed on your computer and accessible through the command line.
OpenSSL is already installed for macOS and is typically installed for Linux. For Windows systems, you must install OpenSSL manually.
To install OpenSSL for Windows systems, do the following:
Download and install the OpenSSL v1.1.1 installer for your operating system version. OpenSSL v1.x is required to generate certificates. Later versions of OpenSSL aren't supported at this time.
During installation, make sure to select the option to copy the OpenSSL DLLs to the OpenSSL binaries (/bin) directory.
Open the Windows Start menu, search for Environment Variables, and select Open.
On the System Properties window, select Environment Variables.
Select Path under User variables, and then select Edit.
Select Browse.
Find and select This PC > Local Disk (C:) > Program Files > OpenSSL-Win64 > bin.
Select OK to add the folder directory. Then select OK to confirm changes and close the remaining windows.
Open the Windows command line. To do this, open the Start menu, search for cmd, and select Open. On the command line, enter the command openssl version
to confirm that installation was successful. The output will be similar to the following:
OpenSSL 1.1.1l 24 Aug 2021
Before you begin, make sure to install the OpenSSL module so Postman can generate the certificate.
In Windows File Explorer, open the %APPDATA%\Postman\proxy
folder. Typically, the folder will be located at C:\Users\<user>\AppData\Roaming\Postman\proxy
.
Right-click on the postman-proxy-ca.crt file and select Install Certificate.
Select Local Machine and select Next. This action requires Administrator permissions. Select Yes to proceed.
Select Place all certificates in the following store.
Select Browse and then select Trusted Root Certification Authorities.
Select OK and then select Next.
Select Finish to import the certificate.
Restart Postman.
If you're on macOS and using Postman v10.17 or later, the Postman security certificate is automatically installed on your computer the first time you start the proxy. To learn more, go to Capturing requests with the Postman proxy.
To install the security certificate on macOS, do the following:
In the macOS Finder, open the ~/Library/Application Support/Postman/proxy
folder.
Double-click the postman-proxy-ca.crt
file.
Select System in the Keychain list, and then select Add. Enter your system password to confirm the action.
In Keychain Access, double-click the imported Postman certificate to open it.
Expand the Trust section. Select the option to Always Trust when using this certificate, and make sure Always Trust is selected for Secure Sockets Layer(SSL).
Close the certificate window. Enter your system password to update the settings.
To install the security certificate on CentOS and Red Hat Enterprise Linux, do the following:
Copy the postman-proxy-ca.crt
certificate file from ~/.config/Postman/proxy
to the /etc/pki/ca-trust/source/anchors/
directory.
sudo cp ~/.config/Postman/proxy/postman-proxy-ca.crt /etc/pki/ca-trust/source/anchors/
Run the command below in terminal to complete the installation:
sudo update-ca-trust extract
To install the security certificate on Ubuntu, do the following:
Create the directory for the CA certificate with this command:
sudo mkdir -p /usr/share/ca-certificates/extra
Copy postman-proxy-ca.crt
to the new folder with this command:
sudo cp ~/.config/Postman/proxy/postman-proxy-ca.crt /usr/share/ca-certificates/extra/postman-proxy-ca.crt
Add the certificate to the system with these two commands:
sudo dpkg-reconfigure ca-certificates
sudo update-ca-certificates
Open Google Chrome and go to the URL chrome://settings/security
.
Select Manage device certificates from the list.
Select the Authorities tab and then Import.
Select Browse and select the ~/.config/Postman/proxy/postman-proxy-ca.crt
file.
Under Trust Settings, select Trust this certificate for identifying websites.
Select OK.
Open Firefox, select the application menu, and then select Preferences.
Select Privacy & Security. Scroll down to Certificates and select View Certificates.
In the Certificate Manager, select the Authorities tab, and then select Import.
Select postman-proxy-ca.crt and select Open.
Select Trust this CA to identify websites and select OK.
To install the security certificate on iOS, do the following:
Download the postman-proxy-ca.crt
certificate to the iOS device (for example, using AirDrop). You can find the certificate file on your computer in the following location:
~/Library/Application Support/Postman/proxy
C:\Users\<user>\AppData\Roaming\Postman\proxy
~/.config/Postman/proxy
Go to Settings > Profile Downloaded, and then select Install. Enter your passcode to proceed.
A security warning displays. Select Install.
After the certificate is installed, select Done.
Go to Settings > General > About > Certificate Trust Settings.
Enable full trust for Postman's root certificate, and select Continue to complete the installation.
The certificate installation process may differ depending on your device and Android version.
To install the security certificate on Android, do the following:
Download the postman-proxy-ca.crt
certificate to the Android device. You can find the certificate file on your computer in the following location:
~/Library/Application Support/Postman/proxy
C:\Users\<user>\AppData\Roaming\Postman\proxy
~/.config/Postman/proxy
Open the Settings app and go to Security > Encryption & credentials.
Select Install a certificate and select the CA Certificate option.
A security warning displays. Select Install anyway to proceed.
Browse for and select the postman-proxy-ca.crt
certificate file. You will get a message that the certificate is installed. You can capture traffic through a web browser on Android.
Need to capture requests from an Android app? To capture requests from an Android app, you need to add a network security configuration file to your app to trust the
postman-proxy-ca.crt
certificate. For more information, see Trust additional CAs on the Android Developers portal.
If you are unable to correctly install the postman-proxy-ca.crt
certificate, or if the certificate isn't allowing you to capture traffic, regenerate and reinstall the certificate.
To regenerate and reinstall the certificate, do the following:
Make sure you are running Postman version 9.1 or later. See Update Postman.
On the computer where Postman is installed, delete the /Postman/Proxy
folder. You can find the folder in the following location:
~/Library/Application Support/Postman/proxy
C:\Users\<user>\AppData\Roaming\Postman\proxy
~/.config/Postman/proxy
Close and restart Postman. Postman regenerates the certificate.
If prompted, follow the steps for your device to reinstall the certificate.
Last modified: 2024/10/02
Additional resources
Videos
Blog posts