SSLCertEncoded Property

The certificate (PEM/base64 encoded).


public var sslCertEncoded: String {
get {...}
set {...} }

public var sslCertEncodedB: Data {
get {...}
set {...} }

Default Value



The certificate (PEM/base64 encoded). This property is used to assign a specific certificate. The Store and Subject properties may also be used to specify a certificate.

When Encoded is set, a search is initiated in the current Store for the private key of the certificate. If the key is found, Subject is updated to reflect the full subject of the selected certificate, otherwise Subject is set to empty string.

If an error occurs when setting this property an error will not be thrown. This property has a related method which will throw an error:

public func setSSLCertEncodedB(sslCertEncoded: Data) throws
public func setSSLCertEncoded(sslCertEncoded: String) throws

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 macOS Edition - Version 20.0 [Build 8307]