Enabling a Listener for HTTPs Support with Server Certificate Validation

For a HTTPS protocol, when a client attempts to setup a trusted connection with the host (like a relay server), the host responds with a certificate. To verify if the server certificate is trusted or not, the application registers a delegate with the OData SDK. If the server certificate is trusted, the connection is successful. If the server certificate is not trusted, the delegate determines if the certificate should be deemed trusted and proceed with the connection.If no delegate is set, all certificate chains that are not automatically trusted are rejected.

See Configuring Unwired Server to use Relay Server in Sybase Control Center for Online Data Proxy for information on the configuration of relay server properties.

Syntax

To register a listener for certificate verification, implement the protocol ODPCertificateChallengeListenerDelegate

@protocol ODPCertificateChallengeListenerDelegate <NSObject>
@required
-(void) onCertificateChallenge:(NSString*) certInfo;
@end

Examples