Archived:Secure sockets need additional configuration on S60 3rd Edition (Known Issue)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
Secure socket connections on 3rd Edition need additional configuration that was not needed for previous platform versions.
Article Metadata
Compatibility
Platform(s): S60 3rd Edition
Article
Created: User:Technical writer 1
(21 Aug 2007)
Last edited: hamishwillee
(19 Jun 2012)
Description
Symptoms: On S60 3rd Edition, a connection attempt using a secure socket (CSecureSocket) will fail during SSL handshake with error code -7547. The same code works when compiled for S60 2nd Edition.
Solution
After constructing the CSecureSocket object, call the following method:
iSecureSocket->SetOpt(KSoSSLDomainName, KSolInetSSL, serverName);
where serverName (8-bit descriptor) is the name expected to be in the certificate (the domain name of the host).
This call can be made on both on S60 2nd and 3rd Edition platforms, but is required only on S60 3rd Edition.


(no comments yet)