Postman CA certificate not found [Ubuntu][Snap]

Hi there. I had the same issue on Ubuntu 22.04 LTS and resolved it by following these steps. hope this demonstration help you solve the problem. here is my system information:
ali@ali-GE620DX:~$ uname -a
Linux ali-GE620DX 5.18.10-051810-generic #202207071639 SMP PREEMPT_DYNAMIC Thu Jul 7 17:34:42 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

  1. I have used the non-containerized version of Postman due to this fact that Snap version of Postman have some limitations (Capture Request and cookies via Interceptors for example.)

  2. Download the latest version of Postman binaries: (non-containerized)
    Download Postman | Get Started for Free
    My Version was:
    postman-9.24.2-linux-x64.tar.gz

  3. Unrar the compressed file somewhere in your storage.

  4. Open the Postman App and launch a “Capture Requests session”. After doing that the certificate file should be located at the following location: (Note: Change the segment “Ali” with your username)
    /home/ali/.config/Postman/proxy/

I bet you don’t see these files! ok, then you can check the Log files generated by the Postman app. These files are located in: (Note: Change the segment “Ali” with your username)

/home/ali/.config/Postman/logs/

  1. if you have such a message in log files (proxy_node_process_prod-node-process.log or main.log) continue the forehead steps:

    RSA PRIVATE KEY not found from openssl output:\n—stdout—\n-----BEGIN PRIVATE KEY—…
    Most likely it is related to the “pem” dependency of the postman app and this open issue on Github:
    OpenSSL v3 support · Issue #316 · Dexus/pem · GitHub

  2. This is a temporary solution until the above issue ll be close.
    make a backup of pem.js file:
    /home/ali/Downloads/Compressed/Postman/app/resources/app/node_modules/pem/lib/pem.js

  3. Change the original file like this and save the file:
    (Here is my pem.js file after the new changes: Ubuntu Pastebin)

    var RSA_KEY_START = ‘-----BEGIN PRIVATE KEY-----’
    var RSA_KEY_END = ‘-----END PRIVATE KEY-----’



    openssl.exec(params, ‘PRIVATE KEY’, function (sslErr, key) {
    function done (err) {
    if (err) {
    return callback(err)
    }
    callback(null, {
    key: key
    })
    }

  4. After doing that close the Capture Session and the Postman app, then delete the "proxy " folder located at:
    /home/ali/.config/Postman/

  5. One again lunch the post man and Capturing session. This time you should have two new files here: /home/ali/.config/Postman/proxy/
    postman-proxy-ca.crt
    postman-proxy-ca.key

  6. That is perhaps what you want. you can continue to move the certificate to the client device and trust it there and then enjoy the “Captured Request”:

Thanks, Ali.