importCert (method)
Imports a certificate.
Syntax
- (void)importCert:(NSData*)certBytes :(NSString*)password;
public func importCert(_ certBytes: Data, _ password: String) throws -> Void
Remarks
Use this method to load a certificate from a byte array. Provide the password via the Password parameter. The Password parameter is optional. If it is omitted and it is later discovered that the key is password-encrypted, the PasswordNeeded event will be fired to request it. This method supports certificates in DER, PEM, PFX, and SPC formats.