How to add certificate in Postman?

Adding certificates in Postman is a key step in ensuring secure communication. By selecting "Settings" and then accessing the "Certificate" tab, you can manage client certificates.

Home > Blog > How to add certificate in Postman?

Certificates play a crucial role in network communication, especially when secure communication is conducted using the HTTPS protocol. To ensure the security of communication, servers typically utilize SSL/TLS certificates to authenticate their identity and encrypt data. Adding certificates in Postman can help you simulate communication with servers that require certificate validation.

Postman provides functionality to manage certificates. To manage client certificates, click on the corresponding button, select "Settings," and then choose the "Certificate" tab, as shown below:

Adding a Certificate

To add a new client certificate, click on the "Add Certificate" button and provide relevant information about the certificate, typically including the certificate name, certificate type (PEM, PFX, etc.), and the path to the certificate file, as follows:

  • Host: URI domain, for example, example.com
  • Port: e.g., 443
  • CRT file: Select the CRT file to upload
  • KEY file: Upload the certificate key file
  • PFX file: A common certificate file format typically used for storing private keys, public keys, and certificate chains

If a Passphrase was used during the generation of the client certificate, provide the password in the Passphrase field. Otherwise, leave it blank, as shown below:

After adding the certificate, it will appear in the client certificate list as shown in the image. Ensure not to set multiple certificates for the same domain. If multiple settings exist, only the last one will be effective.

Using Certificates

Once you add a client certificate, it will automatically be sent along with requests to the corresponding domain. Ensure that you send requests via HTTPS.

Removing Certificates

To remove a certificate, simply click on the "Remove" link next to Client Certificate under the Certificate tab in SETTINGS, as shown below:

Modifying Certificates

Certificates cannot be edited after creation. To make changes, you need to delete the certificate and then create a new one that meets your requirements.

Conclusion

Adding certificates in Postman is a key step in ensuring secure communication. By selecting "Settings" and then accessing the "Certificate" tab, you can manage client certificates. Adding a certificate requires providing relevant information such as certificate name, type, and file path, and providing a password when necessary. Once added, the certificate will automatically be sent with HTTPS requests to the corresponding domain. Removing a certificate is as simple as clicking the "Remove" link, while modifying a certificate requires deletion and recreation.

How to add certificate in Postman?
Adding certificates in Postman is a key step in ensuring secure communication. By selecting “Settings” and then accessing the “Certificate” tab, you can manage client certificates.

Learn more: