×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    30

    StartClientHandshake fails with KErrDisconnected

    I'm trying to request a file over https to our test server that has a test SSL certificate. I create the CSecureSocket class the normal way:

    Code:
    iSecureSocket = CSecureSocket::NewL(iSocket, _L("TLS1.0"));
           
           iSecureSocket->SetDialogMode(EDialogModeAttended);
           iSecureSocket->SetOpt(KSoSSLDomainName, KSolInetSSL, *iServerName8); 
           iSecureSocket->FlushSessionCache();
           iSecureSocket->StartClientHandshake(iStatus);
           SetActive();
    This works fine on various NSeries devices that I have. But iStatus comes back with KErrDisconnected on the E7 I have. I get the prompt on the first request about the untrusted certificate. I accept it permanently and I see it show up in the trusted site certificates. I'm able to log the ssl handshaking on my server and I see that the server times out waiting for something from the device and then just closes the connection. I thought it could be because our SSL cert is not a valid cert but rather a test cert. But the HTTPS request works fine on the E7 if I go through the browser! ugghhh! Anyone have any ideas if something extra needs to be done for ESeries devices???

    Thanks in advance

  2. #2
    Registered User
    Join Date
    Mar 2011
    Posts
    30

    Re: StartClientHandshake fails with KErrDisconnected

    Wow, no one has run into this or has any idea why this might happen???

Similar Threads

  1. CSecureSocket::StartClientHandshake fails with -7510
    By mtaponen in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2010-10-13, 09:31
  2. CSecureSocket - StartClientHandShake fails
    By chengguangguo in forum Symbian Networking & Messaging (Closed)
    Replies: 21
    Last Post: 2008-11-06, 10:23
  3. KErrNoCertsAvailable after StartClientHandshake
    By ggcespia in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-08-22, 01:30
  4. -7590 (KErrSSLAlertUserCanceled) on StartClientHandshake
    By profoundwhispers in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-10-18, 13:56
  5. KErrDisconnected
    By vasilak in forum Bluetooth Technology
    Replies: 0
    Last Post: 2003-08-27, 15:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •