Leave feedback
  • Question

    java connectivity

Enter a new topic
  • parthu 123 parthu 123
    0 likes 3730 views

    Hi,

    For HTTPS connection I Generate the self signed certificate.

    I create the java pogram for the HTTP connection.which I have attached here. Now  I need to generate the Java program for HTTPS connection .

    i added the private key in the security configuration of the streamserve.

    Now how my java program should look like for HTTPS connection.

    Kindly share your ideas

    Thanks

     

    Monday 03 December, 2012
  • Magnus Östling Magnus Östling
    0 likes

    Hi Parthu,

    I am not sure what you refer to as your java program, but if you want to use a https_submit connector to submit data to a SSL enabled server you need to know if both server and client authentication is required. Usually only server authentication is required. This means that your https_submit connector has to have access to a security configuration resource including the entire certificate chain above the certificate returned by the remote server during the SSL handshake.

    If the remote server would require client authentication to accept a request from your https_submit connector you would also need to include your privatekey.pfx and password in your security configuration. The remote server would of course need access to the certificate chain above your private key's certificate.

    If you are using your own java connector you would have to implement your own code for handling of SSL. You could not reuse the SSL logic implemented for our standard connectors.

    //Magnus 

     

     

    Friday 07 December, 2012
  • parthu 123 parthu 123
    0 likes

    Hi Magnus,

    Thanks for your responce

    My requirment is need to create HTTPS connection.

    I did the FollowingSteps

    1, I defined a connector HTTPS connector as a input connector and HTTPS submit connector in output connector

    2,I create a private key and self signed certificate using java as i seen the david's forum basic VS. advanced security configuration http://streamshare.streamserve.com/Forum/Topic/?topicID=906. I got MYkeystore.pfx with CA.

    3,. I add the private key(.pfx) to the security configuration and add the security configuration to the HTTPS Connector and HTTPS submit connetor.

    4,After i search the internet i find the java program for the HTTPS code plugin.(i don't know exactly whether it is right or wrong) which I attached here.(Here streamserve act as a SSL server)

    5.After i run the java program in eclipse i am getting the error as Socket class: class com.sun.net.ssl.internal.ssl.SSLSocketImpl Remote address = https://eus3o1.sgp.st.comeus3o1.sgp.st.com/10.75.34.228 Remote port = 80002000 Local socket address = /10.199.48.240:4514 Local address = /10.199.48.240 Local port = 4514 Need client authentication = false Cipher suite = SSL_NULL_WITH_NULL_NULL Protocol = NONE javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

     

    In control center the log as 1206 053751 (3175) 0 HTTPS: Started.1206 053751 (0000) 3 Communication Server started1206 131905 (3869) 0 HTTPS: Incoming connection rejected from : SSL_accept() failed. 1206 053751 (3175) 0 HTTPS: Started.1206 053751 (0000) 3 Communication Server started1206 131905 (3869) 0 HTTPS: Incoming connection rejected from : SSL_accept() failed. 6, Can u please guide me in this Since it's very urgent issue.

    Thankz Partha

    Friday 07 December, 2012
  • parthu 123 parthu 123
    0 likes
    parthu 123 wrote

    Hi Magnus,

    Thanks for your responce

    My requirment is need to create HTTPS connection.

    I did the FollowingSteps

    1, I defined a connector HTTPS connector as a input connector and HTTPS submit connector in output connector

    2,I create a private key and self signed certificate using java as i seen the david's forum basic VS. advanced security configuration http://streamshare.streamserve.com/Forum/Topic/?topicID=906. I got MYkeystore.pfx with CA.

    3,. I add the private key(.pfx) to the security configuration and add the security configuration to the HTTPS Connector and HTTPS submit connetor.

    4,After i search the internet i find the java program for the HTTPS code plugin.(i don't know exactly whether it is right or wrong) which I attached here.(Here streamserve act as a SSL server)

    5.After i run the java program in eclipse i am getting the error as Socket class: class com.sun.net.ssl.internal.ssl.SSLSocketImpl Remote address = https://eus3o1.sgp.st.comeus3o1.sgp.st.com/10.75.34.228 Remote port = 80002000 Local socket address = /10.199.48.240:4514 Local address = /10.199.48.240 Local port = 4514 Need client authentication = false Cipher suite = SSL_NULL_WITH_NULL_NULL Protocol = NONE javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

     

    In control center the log as 1206 053751 (3175) 0 HTTPS: Started.1206 053751 (0000) 3 Communication Server started1206 131905 (3869) 0 HTTPS: Incoming connection rejected from : SSL_accept() failed. 1206 053751 (3175) 0 HTTPS: Started.1206 053751 (0000) 3 Communication Server started1206 131905 (3869) 0 HTTPS: Incoming connection rejected from : SSL_accept() failed. 6, Can u please guide me in this Since it's very urgent issue.

    Thankz Partha

     

    Friday 07 December, 2012

    Attached files

  • Magnus Östling Magnus Östling
    0 likes

    Hi Parthu,

    This seem to be a duplicate of your other post http://streamshare.streamserve.com/Forum/Topic/?topicID=5131. In that I suggested how you can try the SSL connection between two StreamServer applications in a very simple way without involving any external java code. I suggest you try my suggestions and continue any further discussion in the other threat (http://streamshare.streamserve.com/Forum/Topic/?topicID=5131)

    /Magnus 

    Friday 07 December, 2012