where exactly i should specify trust store resource location while configuring HTTP4s?
KeyStoreParameters class provides setResouce , similarly ,how to specify trust store ? On Sun, Mar 31, 2019 at 11:17 AM Rohan Emmanuel <rohan.emmanue...@gmail.com> wrote: > any clues on the reasons for getting "java.net.SocketException: Software > caused connection abort: recv failed" > when using http4s? > > > On Sun, Mar 31, 2019 at 10:08 AM Rohan Emmanuel < > rohan.emmanue...@gmail.com> wrote: > >> Can anyone point me to working HTTPS sample please? >> >> >> On Sat, Mar 30, 2019 at 3:32 PM Rohan Emmanuel < >> rohan.emmanue...@gmail.com> wrote: >> >>> still getting Handshake exception:] >>> not sure where i am going wrong >>> >>> java.net.SocketException: Software caused connection abort: recv failed >>> at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.8.0_101] >>> at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) >>> ~[?:1.8.0_101] >>> at java.net.SocketInputStream.read(SocketInputStream.java:170) >>> ~[?:1.8.0_101] >>> at java.net.SocketInputStream.read(SocketInputStream.java:141) >>> ~[?:1.8.0_101] >>> at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) >>> ~[?:1.8.0_101] >>> at sun.security.ssl.InputRecord.read(InputRecord.java:503) ~[?:1.8.0_101] >>> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) >>> ~[?:1.8.0_101] >>> at >>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) >>> ~[?:1.8.0_101] >>> at >>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) >>> ~[?:1.8.0_101] >>> at >>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) >>> ~[?:1.8.0_101] >>> >>> On Sat, Mar 30, 2019 at 2:28 PM Wang Yan <wyan...@gmail.com> wrote: >>> >>>> You could do something like this to set SSL for Http4 >>>> >>>> private void configureSslForHttp4(){ >>>> KeyStoreParameters ksp = new KeyStoreParameters(); >>>> ksp.setResource(keystoreLocation); >>>> ksp.setPassword(keystorePassword); >>>> TrustManagersParameters tmp = new TrustManagersParameters(); >>>> tmp.setKeyStore(ksp); >>>> SSLContextParameters scp = new SSLContextParameters(); >>>> scp.setTrustManagers(tmp); >>>> HttpComponent httpComponent = getContext().getComponent("https4", >>>> HttpComponent.class); >>>> httpComponent.setSslContextParameters(scp); >>>> } >>>> >>>> >>>> ------------------------------ >>>> If you reply to this email, your message will be added to the discussion >>>> below: >>>> >>>> http://camel.465427.n5.nabble.com/private-void-configureSslForHttp4-KeyStoreParameters-ksp-new-KeyStoreParameters-ksp-setResource-keys-tp5832522.html >>>> To unsubscribe from Camel - Users, click here >>>> < >>>> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=d3lhbmJveEBnbWFpbC5jb218NDY1NDI4fDExNTUzMDM4Mw== >>>> > >>>> . >>>> NAML >>>> < >>>> http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml >>>> > >>>> >>> >>> >>> -- >>> Regards, >>> Rohan Emmanuel >>> >> >> >> -- >> Regards, >> Rohan Emmanuel >> > > > -- > Regards, > Rohan Emmanuel > -- Regards, Rohan Emmanuel