web stats
ERROR: Error connecting to HTTP server - SSLHandshakeException - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2014, 09:20 AM
mirraraenn mirraraenn is offline
Mirth Newb
 
Join Date: Jun 2014
Posts: 16
mirraraenn is on a distinguished road
Default ERROR: Error connecting to HTTP server - SSLHandshakeException

Can someone please help explain why I am getting this certificate exception when using an HTTP sender with a blank keystore configured? On Windows Server 2008 R2, the certificate the end site is using is one that is trusted by all web browsers when navigating directly to the URL (which I think would mean I have the local CA's public key already), but cannot be called in any way by an HTTP sender because it cannot find a trusted certificate. Where exactly in the handshake process is this breaking down; on the server's inability to locate the public key for the hosts certificate, can it find the end server's certificate, etc...

ERROR: Error connecting to HTTP server [SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found]

What I ultimately want to know is how certificates are loaded\used by Mirth so that I can configure channels to connect to connect to many different sites, each of whom might be using a certificate signed by different CAs.
Reply With Quote
  #2  
Old 08-27-2014, 09:34 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,123
narupley is on a distinguished road
Default

Quote:
Originally Posted by mirraraenn View Post
Can someone please help explain why I am getting this certificate exception when using an HTTP sender with a blank keystore configured? On Windows Server 2008 R2, the certificate the end site is using is one that is trusted by all web browsers when navigating directly to the URL (which I think would mean I have the local CA's public key already), but cannot be called in any way by an HTTP sender because it cannot find a trusted certificate. Where exactly in the handshake process is this breaking down; on the server's inability to locate the public key for the hosts certificate, can it find the end server's certificate, etc...

ERROR: Error connecting to HTTP server [SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found]

What I ultimately want to know is how certificates are loaded\used by Mirth so that I can configure channels to connect to connect to many different sites, each of whom might be using a certificate signed by different CAs.
Currently, trusted certificates are loaded via the appdata/truststore.jks file. So if you have a specific certificate that you need to trust, add it there via Portecle or keytool.

However, in 3.1 we're completely overhauling the SSL Manager plugin to be much easier to use. I highly recommend watching this (starts at 7:19): http://www.mirthcorp.com/protected-c...eveloper-qa-73
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
Reply

Tags
certificate, certificate authority, ssl, ssl plugin, sslhandshake

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:53 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation