I am getting Untrusted Certificate error (Response Code: 401) with Solace Client Certificate Authentication Scheme.
Here are the details over configurations made:
- Created a self-signed server and client certificates in pem format (With Private Keys)
- Uploaded both to Certs folder on solace VMR
- Configured server certificate to be used as Server Certificate on Solace VMR
- Added client certificate to the trusted-root (Configure/authentication) trusted-root
- From the client setting below properties over session object (On top of other required properties):
objSessionProperties.SSLClientCertificateFile
objSessionProperties.SSLClientPrivateKeyFile
objSessionProperties.SSLClientPrivateKeyFilePassword
By making above things, I can call Create Session successfully, whereas it leads to an exception while connecting to the session. Here is the error information received from Solace:
{(Subcode=LoginFailure, Error string=Untrusted Certificate, Response code= 401 )}
Thanks for your help in advance.
Thanks.