javax.net.ssl.SSLException: Connection reset exception when connecting DocuSign development endpoint - docusignapi

javax.net.ssl.SSLException: Connection reset
I'm trying to connect Docusign's development endpoint (account-d.docusign.com) through my application. We are experiencing "javax.net.ssl.SSLException: Connection reset" when the application tries to retrieve a JWT user token using "requestJWTUserToken" method. What might be causing the SSL exception? Thanks for any help!

It seems that the connection has been closed by the server end of the connection. This could be an issue with the request you are sending
To aid debugging you could look at using a tool such as Wireshark to view the actual network packets.
The cause could be that the connection inside HttpClient is stale. Check stale connection for SSL does not fix this error. Solution: dump your client and recreate.

Related

Can OPC-UA Server override timeouts and other parameters over connected client?

I created an OPC-UA server based on Node-OPCUA and node.js and several clients have wrong or empty parameters when connecting. This causes malfunctions on clients side.
Is it possible for server to override or correct the client configuration parameters so it works correctly even when the client is wrongly defined?
I am particularly interested in overriding session and connection timeouts.
Clients may disruptively disconnect, so the server does no close that connection. How do I get rid of those zombie connections? Sessions are usually closed due to timeout, but not connections.
You can't do that because it's again the OPC-UA protocol. The client should be able to open a connection with its own parameters.
If you detect that the client is wrongly configured you should throw a ServiceException instead.

Can't POST with mongo

I'm having an issue with the nodejs driver for mongo. Every time I try to post something, I get this error in my mongod.exe cmd instance:
2016-07-27T10:11:42.536-0700 I NETWORK [conn5] AssertionException handling request, closing client connection: 17132 SSL handshake received but server is started without SSL support
Does anyone know what I'm doing wrong. This worked last evening, and the last thing I did was test a POST and it was working fine.
Well, from the error:
"SSL handshake received but server is started without SSL support"
That implies that the connection string or connection params you're using is trying to connect over SSL, but the mongo server is not configured for SSL.

Docusign Connection issue

We are using the Docusign Rest API to integrate with our application to send documents for signing.
The below mentioned is the connection string that is formed during runtime
Connection String =
weblogic.net.http.SOAPHttpsURLConnection:https://demo.docusign.net/restapi/v2/login_information
When we try to get response from the connection, we get the following error
java.net.ConnectException: Tried all: 1 addresses, but could not connect over
HTTPS to server: demo.docusign.net port: 443;
Any pointers in this regard would be highly appreciated.
Thanks
Rashmi
Your error message is coming from the weblogic stack. Therefore, things to try:
Ensure that your server has Internet connectivity to https://demo.docusign.net by pinging from the console.
Check for https connectivity by using curl or similar.
Check that you're using the right method from your stack for https connections.
Since https://demo.docusign.net is definitely up and working (try it from a browser) the problem is local. Consult your stack vendor for additional help.

How to send access token using a wss .net client

I want to connect to the nest endpoint using a .net wss client.
I am unsure how to pass the NEST access_token during handshake to the endpoint to complete
the authorization handshake.
Without it I get a 401.
If I put is as query parameter "/devices.json?auth=c.Uysdi..." I get
a 307 (redirection) to a firebase endpoint but with https ??? (no
longer wss).
If i add the access token to headers I get 401.
In the api samples I can only find javascript examples using firebase client lib which
does not help much.
Can someone explain what should I do to complete the wss handshake ?
I replaced the https with wss. that worked for me.
Maybe a bit of code will help people solve you issue
I found out what was the problem.
There was a 'bug' in the web socket library I was using. The header value "Upgrade: websocket"
which is passed during websocket handshake was passed like this "Upgrade: webSocket".
Some websocket test servers are case insensitive but not the one from Google Nest.
Once I changed this to "websocket" I got a proper websocket handshake response and no redirection either.
Access token is added as a query parameter when connecting with websockets to the nest endpoint.
Once the connection is established I am again in the dark on how to establish subscribtion to certain
events or query data but this will be the topic for another question.

IIS 7.5 Secure Communication Error - The underlying connection was closed: Could not establish secure channel for SSL/TLS

We are experiencing the following error when trying to use an external web service from our application deploy under IIS 7.5.
Error - The underlying connection was closed: Could not establish secure channel for SSL/TLS.
This works from other servers, but on this particular one it fails. This started happening when the server we are trying to connect with disallowed SSL connections and is only accepting TLS. As described in this link http://support.microsoft.com/kb/915599 we changed the registry, but are still seeing the error. Please see the attached image of the registry to make sure this was done properly. It seems like IIS is still trying to use the SSL protocol. I'm a bit confused where in the communication process IIS selects the protocol, SSL vs TLS. Maybe there's something that needs to be done to ensure TLS is selected? Other ideas?
This was fixed at the code level by adding the following line -
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;

Resources