Certificate error while using MirthSync: unable to find valid certification path to requested target #54
bartha-adam
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi Adam,
You can use the '-i' option when calling mirthsync to ignore the certificate error.
Obligatory Warning: You probably shouldn't ignore a certificate if you are working in a production environment.
Thanks.
— Mike
…________________________________
From: Adam Bartha ***@***.***>
Sent: Thursday, April 20, 2023 7:33:59 AM
To: SagaHealthcareIT/mirthsync ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [SagaHealthcareIT/mirthsync] Certificate error while using MirthSync: unable to find valid certification path to requested target (Discussion #54)
Hi there,
Just discovered this promising tool while looking for solution to ease dev work around Mirth Connect.
Nice initiative!
I am facing the following issue while trying to use MirthSync:
.\mirthsync.bat -s 'https://localhost:8443/api' -u admin -p admin -t .\remotepull pull
Output:
Authenticating to server at https://localhost:8443/api as admin
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:451)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:323)
at sun.security.validator.Validator.validate(Validator.java:271)
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:315)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:223)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:129)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:638)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:369)
at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:377)
at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:444)
at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:422)
at sun.security.ssl.TransportContext.dispatch(TransportContext.java:182)
at sun.security.ssl.SSLTransport.decode(SSLTransport.java:152)
at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1392)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1300)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:435)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
at org.apache.http.impl.conn.BasicHttpClientConnectionManager.connect(BasicHttpClientConnectionManager.java:313)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at clj_http.core$request.invokeStatic(core.clj:641)
at clj_http.core$request.invoke(core.clj:566)
at clj_http.core$request.invokeStatic(core.clj:567)
at clj_http.core$request.invoke(core.clj:566)
at clojure.lang.Var.invoke(Var.java:384)
at clj_http.client$wrap_request_timing$fn__2758.invoke(client.clj:1074)
at clj_http.headers$wrap_header_map$fn__1874.invoke(headers.clj:152)
at clj_http.client$wrap_query_params$fn__2648.invoke(client.clj:808)
at clj_http.client$wrap_basic_auth$fn__2654.invoke(client.clj:831)
at clj_http.client$wrap_oauth$fn__2659.invoke(client.clj:848)
at clj_http.client$wrap_user_info$fn__2668.invoke(client.clj:868)
at clj_http.client$wrap_url$fn__2740.invoke(client.clj:1026)
at clj_http.client$wrap_decompression$fn__2449.invoke(client.clj:415)
at clj_http.client$wrap_input_coercion$fn__2572.invoke(client.clj:628)
at clj_http.client$wrap_additional_header_parsing$fn__2597.invoke(client.clj:683)
at clj_http.client$wrap_output_coercion$fn__2559.invoke(client.clj:572)
at clj_http.client$wrap_exceptions$fn__2402.invoke(client.clj:249)
at clj_http.client$wrap_accept$fn__2612.invoke(client.clj:726)
at clj_http.client$wrap_accept_encoding$fn__2619.invoke(client.clj:748)
at clj_http.client$wrap_content_type$fn__2606.invoke(client.clj:709)
at clj_http.client$wrap_form_params$fn__2705.invoke(client.clj:950)
at clj_http.client$wrap_nested_params$fn__2726.invoke(client.clj:984)
at clj_http.client$wrap_flatten_nested_params$fn__2735.invoke(client.clj:1008)
at clj_http.client$wrap_method$fn__2673.invoke(client.clj:884)
at clj_http.cookies$wrap_cookies$fn__1081.invoke(cookies.clj:131)
at clj_http.links$wrap_links$fn__2207.invoke(links.clj:63)
at clj_http.client$wrap_unknown_host$fn__2743.invoke(client.clj:1037)
at clj_http.client$request_STAR_.invokeStatic(client.clj:1165)
at clj_http.client$request_STAR_.invoke(client.clj:1158)
at clj_http.client$post.invokeStatic(client.clj:1183)
at clj_http.client$post.doInvoke(client.clj:1179)
at clojure.lang.RestFn.invoke(RestFn.java:423)
at mirthsync.http_client$with_authentication.invokeStatic(http_client.clj:51)
at mirthsync.http_client$with_authentication.invoke(http_client.clj:45)
at mirthsync.core$run.invokeStatic(core.clj:21)
at mirthsync.core$run.invoke(core.clj:10)
at mirthsync.core$main_func$fn__3776.invoke(core.clj:46)
at mirthsync.core$main_func.invokeStatic(core.clj:45)
at mirthsync.core$main_func.doInvoke(core.clj:37)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:665)
at clojure.core$apply.invoke(core.clj:660)
at mirthsync.core$_main.invokeStatic(core.clj:57)
at mirthsync.core$_main.doInvoke(core.clj:55)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at mirthsync.core.main(Unknown Source)
unable to find valid certification path to requested target
Any idea why this is happening?
Note: when accessing the API's swagger, I am seeing also some certificate error, like this:
[chrome_HOmNpKwkte]<https://user-images.githubusercontent.com/4427350/233353854-fea70764-6373-4ebd-b34a-27889f2f39e5.png>
—
Reply to this email directly, view it on GitHub<#54>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AACUQ3QFK5MNFQBCNYYT7TLXCENKPANCNFSM6AAAAAAXFLVJIA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
Just discovered this promising tool while looking for solution to ease dev work around Mirth Connect.
Nice initiative!
I am facing the following issue while trying to use MirthSync:
.\mirthsync.bat -s 'https://localhost:8443/api' -u admin -p admin -t .\remotepull pull
Output:
Authenticating to server at https://localhost:8443/api as admin
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:451)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:323)
at sun.security.validator.Validator.validate(Validator.java:271)
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:315)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:223)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:129)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:638)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:369)
at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:377)
at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:444)
at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:422)
at sun.security.ssl.TransportContext.dispatch(TransportContext.java:182)
at sun.security.ssl.SSLTransport.decode(SSLTransport.java:152)
at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1392)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1300)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:435)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
at org.apache.http.impl.conn.BasicHttpClientConnectionManager.connect(BasicHttpClientConnectionManager.java:313)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at clj_http.core$request.invokeStatic(core.clj:641)
at clj_http.core$request.invoke(core.clj:566)
at clj_http.core$request.invokeStatic(core.clj:567)
at clj_http.core$request.invoke(core.clj:566)
at clojure.lang.Var.invoke(Var.java:384)
at clj_http.client$wrap_request_timing$fn__2758.invoke(client.clj:1074)
at clj_http.headers$wrap_header_map$fn__1874.invoke(headers.clj:152)
at clj_http.client$wrap_query_params$fn__2648.invoke(client.clj:808)
at clj_http.client$wrap_basic_auth$fn__2654.invoke(client.clj:831)
at clj_http.client$wrap_oauth$fn__2659.invoke(client.clj:848)
at clj_http.client$wrap_user_info$fn__2668.invoke(client.clj:868)
at clj_http.client$wrap_url$fn__2740.invoke(client.clj:1026)
at clj_http.client$wrap_decompression$fn__2449.invoke(client.clj:415)
at clj_http.client$wrap_input_coercion$fn__2572.invoke(client.clj:628)
at clj_http.client$wrap_additional_header_parsing$fn__2597.invoke(client.clj:683)
at clj_http.client$wrap_output_coercion$fn__2559.invoke(client.clj:572)
at clj_http.client$wrap_exceptions$fn__2402.invoke(client.clj:249)
at clj_http.client$wrap_accept$fn__2612.invoke(client.clj:726)
at clj_http.client$wrap_accept_encoding$fn__2619.invoke(client.clj:748)
at clj_http.client$wrap_content_type$fn__2606.invoke(client.clj:709)
at clj_http.client$wrap_form_params$fn__2705.invoke(client.clj:950)
at clj_http.client$wrap_nested_params$fn__2726.invoke(client.clj:984)
at clj_http.client$wrap_flatten_nested_params$fn__2735.invoke(client.clj:1008)
at clj_http.client$wrap_method$fn__2673.invoke(client.clj:884)
at clj_http.cookies$wrap_cookies$fn__1081.invoke(cookies.clj:131)
at clj_http.links$wrap_links$fn__2207.invoke(links.clj:63)
at clj_http.client$wrap_unknown_host$fn__2743.invoke(client.clj:1037)
at clj_http.client$request_STAR_.invokeStatic(client.clj:1165)
at clj_http.client$request_STAR_.invoke(client.clj:1158)
at clj_http.client$post.invokeStatic(client.clj:1183)
at clj_http.client$post.doInvoke(client.clj:1179)
at clojure.lang.RestFn.invoke(RestFn.java:423)
at mirthsync.http_client$with_authentication.invokeStatic(http_client.clj:51)
at mirthsync.http_client$with_authentication.invoke(http_client.clj:45)
at mirthsync.core$run.invokeStatic(core.clj:21)
at mirthsync.core$run.invoke(core.clj:10)
at mirthsync.core$main_func$fn__3776.invoke(core.clj:46)
at mirthsync.core$main_func.invokeStatic(core.clj:45)
at mirthsync.core$main_func.doInvoke(core.clj:37)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invokeStatic(core.clj:665)
at clojure.core$apply.invoke(core.clj:660)
at mirthsync.core$_main.invokeStatic(core.clj:57)
at mirthsync.core$_main.doInvoke(core.clj:55)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at mirthsync.core.main(Unknown Source)
unable to find valid certification path to requested target
Any idea why this is happening?
Note: when accessing the API's swagger, I am seeing also some certificate error, like this:
Beta Was this translation helpful? Give feedback.
All reactions