Question:
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.
Thanks. This is fixed and a build is in progress now. I'll post the update when it's ready..