Enabling Single and Mutual SSL Authentication

Secure sockets layer (SSL) is a protocol that governs certificate authentication. It exchanges the certificate information. SSL also encrypts all information that flows between a client and a server. Mutual SSL authentication or certificate based mutual authentication refers to two parties authenticating each other through verifying the provided digital certificate, so that both parties are assured of the others' identity.

In single SSL connection:
  • The CA certificate should be installed on the device trust store which the application takes while connecting to the HTTPS URL. The SSL connection is established.
  • Registering the user through single SSL, use the code:
    [SMPUserManager setDelegate:self];
    l_clientconn = [SMPClientConnection initializeWithAppID:<applicationId> domain:<domain> secConfiguration:<securityconfiguration>];
          userManager = [SMPUserManager initializeWithConnection:l_clientconn];
    //During onboarding with single SSL, add fully qualified domain name of the SAP Mobile Platform server. For example, vwxxx.dhcp.wdf.sap.corp.
    [l_clientconn setConnectionProfileWithHost:<host> port:<port> farm:<farm> relayServerUrlTemplate:<relayserverURLtemplate> enableHTTP:NO];
        
    [userManager registerUser:<backendusername> password:<backendpassword> error:&error isSyncFlag:NO];
    

After initializing the SMPClientConnection class, use the setClientIdentityCertificate method to set the client certificate.

Examples