login about faq

Hi,

I am trying to connect to a java server running on SSL. This server supports only TLS 1.0 and above. When I try to create a client socket to server, it always fails. Here is the log:

ChilkatLog:
   Connect_Socket(919ms):
     DllDate: Feb 20 2015
     ChilkatVersion: 9.5.0.48
     UnlockPrefix: KVRNISocket
     Architecture: Little Endian; 64-bit
     Language: IOS Objective-C
     VerboseLogging: 1
     objectId: 1
     Connect_Socket(919ms):
       hostname: ******.com
       port: 449
       ssl: 1
       maxWaitMs: 20000
       socket2Connect(613ms):
         connect2(613ms):
           hostname: ******.com
           port: 449
           ssl: 1
           connectImplicitSsl(613ms):
             connectSocket(305ms):
               domainOrIpAddress: ******.com
               port: 449
               connectTimeoutMs: 20000
               connect_ipv6_or_ipv4(305ms):
                 Single-threaded domain to IP address resolution
                 connecting to IPV4 address...
                 ipAddress: ***.**.***.***
                 createSocket:
                   Setting SO_SNDBUF size
                   sendBufSize: 262144
                   Setting SO_RCVBUF size
                   recvBufSize: 4194304
                 --createSocket
                 connect(303ms):
                   Waiting for the connect to complete...
                   myIP: 192.168.1.198
                   myPort: 50127
                   socket connect successful.
                 --connect
               --connect_ipv6_or_ipv4
             --connectSocket
             clientHandshake(308ms):
               clientHandshake2(308ms):
                 readHandshakeMessages(307ms):
                   processHandshakeRecord:
                     processHandshakeMessage:
                       processServerKeyExchange:
                         No server hello received yet.
                       --processServerKeyExchange
                     --processHandshakeMessage
                   --processHandshakeRecord
                 --readHandshakeMessages
               --clientHandshake2
             --clientHandshake
             Client handshake failed. (3)
           --connectImplicitSsl
           ConnectFailReason: 0
         --connect2
       --socket2Connect
       certRepository:
         empty
       --certRepository
       Failed.
     --Connect_Socket
   --Connect_Socket
--ChilkatLog

I tried adding the following line of code:

socket.SslProtocol = @"TLS 1.0 or higher";

but no luck. Your quick response is highly appreciated.

asked Mar 17 '15 at 07:49

iOSDev's gravatar image

iOSDev
11


link

answered Mar 17 '15 at 10:25

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Thanks. This is fixed and a build is in progress now. I'll post the update when it's ready..

link

answered Mar 17 '15 at 10:09

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×56
×32

Asked: Mar 17 '15 at 07:49

Seen: 1,450 times

Last updated: Mar 17 '15 at 10:25

powered by OSQA