SELF_SIGNED_CERT_IN_CHAIN using the Desktop Agent

Hello,

I am trying to use the desktop agent to run tests locally, however after its installation and looking at it in the system tray it reports disconnected and advises ‘Error Please Try Again’. However looking at the logs for the desktop agent indicates it is having a ‘SELF_SIGNED_CERT_IN_CHAIN’ error. From researching this issue, the way to resolve this is by adding the certificates into the Postman settings. However, when looking at the Postman Settings and specifically the ‘certificates’ area I am unable to use any of the functions in this area like adding certificates because all the certificate functions are disabled because they require a running desktop agent to function. Has anyone encountered a similar issue using/configuring the desktop agent and have any ideas on how to solve it?

Regards.

Hey @jamesmorriseccles :wave:

Welcome to the Postman Community! :postman:

Which version of the Postman Agent are you using? Which browser are you using this with?

Do you have a recording or a screenshot of the error you’re seeing? It will help to visualize the issue.

Danny,

Thanks for the response. I am using Desktop Agent v0.4.15 and the Edge browser. I dont have a recording or screenshot but this is an extract from the desktop agent log.

[6392][1692098297389][main][info]["Booting PostmanAgent 0.4.15, win32-10.0.22000 on x64"]
[6392][1692098297435][main][warn]["Postman Agent~Main~populateInstallationId: Failed to get installationId from agentSettings but with no error"]
[6392][1692098297451][main][error]["InitHelper~createDefaultWorkingDir - Error while creating default working dir",{"name":"Error","message":"default working directory already exists","stack":"Error: default working directory already exists\n    at C:\\Users\\another\\AppData\\Local\\Postman-Agent\\app-0.4.15\\resources\\app.asar\\src\\workingDir.js:21:23\n    at FSReqCallback.oncomplete (node:fs:199:5)"}]
[6392][1692098297454][main][info]["UpdateHandler~init - Success"]
[6392][1692098299176][main][info]["WebsocketAgent~start - Listening on port",10533]
[6392][1692098299213][main][info]["AutoLaunch: Enabled as the default behaviour."]
[6392][1692098299216][main][info]["AutoLaunch: Enabled"]
[6392][1692098300278][main][info]["AutoLaunch: isAutoLaunchDefaultBehaviourSet is set and persisted."]
[6392][1692098300358][main][error]["WebsocketAgent~handshake verification failed",{"code":"SELF_SIGNED_CERT_IN_CHAIN","name":"Error","message":"self signed certificate in certificate chain","stack":"Error: self signed certificate in certificate chain\n    at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)\n    at TLSSocket.emit (node:events:390:28)\n    at TLSSocket._finishInit (node:_tls_wrap:944:8)\n    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)"},"https://ra.gw.postman.com",,]
[6392][1692098318423][main][warn]["Error while checking for update",{"error":{"message":"request to https://dl-agent.pstmn.io/update/status?channel=stable&currentVersion=0.4.15&arch=64&platform=win64 failed, reason: read ECONNRESET","type":"system","errno":"ECONNRESET","code":"ECONNRESET"},"status":1}]
[6392][1692098318424][main][warn]["Error while checking for update",{"error":{"message":"request to https://dl-agent.pstmn.io/update/status?channel=stable&currentVersion=0.4.15&arch=64&platform=win64 failed, reason: read ECONNRESET","type":"system","errno":"ECONNRESET","code":"ECONNRESET"},"status":1}]
[6392][1692098329986][main][error]["WebsocketAgent~handshake verification failed",{"code":"SELF_SIGNED_CERT_IN_CHAIN","name":"Error","message":"self signed certificate in certificate chain","stack":"Error: self signed certificate in certificate chain\n    at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)\n    at TLSSocket.emit (node:events:390:28)\n    at TLSSocket._finishInit (node:_tls_wrap:944:8)\n    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)"},"https://ra.gw.postman.com",,]
[6392][1692098360201][main][error]["WebsocketAgent~handshake verification failed",{"code":"SELF_SIGNED_CERT_IN_CHAIN","name":"Error","message":"self signed certificate in certificate chain","stack":"Error: self signed certificate in certificate chain\n    at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)\n    at TLSSocket.emit (node:events:390:28)\n    at TLSSocket._finishInit (node:_tls_wrap:944:8)\n    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)"},"https://ra.gw.postman.com",,]

Many thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.