CBLClientCertAuthenticator
@interface CBLClientCertAuthenticator : CBLAuthenticator
An authenticator that presents a client certificate to the server during the initial SSL/TLS
handshake. This requires access to both the X.509 certificate and the matching private key.
Apple’s security APIs refer to such a (certificate, key) pair as an identity
, typed as a
SecIdentityRef.
-
Looks up an identity with the given ID, in the Keychain. If found, initializes the authenticator with it; otherwise returns nil.
Declaration
Objective-C
- (nullable instancetype)initWithIdentityID:(nonnull NSString *)identityID;
Parameters
identityID
A string identifying the identity in the Keychain. on iOS this is the Keychain item’s
label
property; on macOS it’s the preference name as used by SecIdentityCopyPreferred(), etc. -
The identity reference that will be presented during SSL/TLS authentication.
Declaration
Objective-C
@property (readonly, atomic, nullable) SecIdentityRef identity;