Configuring https using http_client protocol

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Configuring https using http_client protocol

  • Creator
    Topic
  • #48491
    chrisblake
    Participant

      Hello,

            I am hoping that somebody will be able to help me here. I am attempting to create an SSL connection in Cloverleaf. I am using the http-client protocol and believe i need to use the ClientAuth mode. The web site that i’m trying to connect to, provide scripts in vbs and i can get these working fine. I expect that IE however is handling the certificate handover etc behind the scenes. Network restrictions stop us from using the vbs or curl scripts so we need cloverleaf/tcl to do everything.

      I believe i have a valid .pem file from the web server. I have attempted to create my own certificate using openssl, but not really knowing too much about certificates not sure everything is correct. The actions i performed are…

      1 – create a 1024-bit private key to use when creating our CA.:

      openssl genrsa -des3 -out keys/ca.key 1024

      2 – create a master certificate based on this key

      openssl req -config openssl.conf -new -x509 -days 1001 -key keys/ca.key -out certs/ca.cer

      I then used these two files as the Private key file and the certificate file.

      I therefore have configured for https…

      CA FILE – the .pem file from the web server

      CA PATH – previously advised to leave blank

      Certficate File – my certificate from step 2 above

      Private Key – my private key file from step 1 above

      Password – My passphrase from step 1 above.

      When i run this thread i get the following error in the process log…

      [ssl :read:ERR /0:http_client_Query] ===Failed writing to SSL Socket handle 0x0018

      Data not received.   Socket Will Be Closed…

      19/04/2006 09:08:22

      [http:wrte:ERR /0:http_client_Query] HTTP Client Error.  Failed sending HTTP ‘Get’ reque

      st.  Sent -1 bytes of 182.

      Message was:

      GET https://199.67.132.7:443/x/mydata_server/ix11009796/Download?x=list HTTP/1.1

      From: anonymous@unknown.com

      User-Agent: HCDC __cHTTPClient

      Host: 10.66.32.179

      Connection: close

      Any help anybody can offer would be greatly appreciated.

      Thanks in advance

      Chris

    • The forum ‘Cloverleaf’ is closed to new topics and replies.