set_phase2_client_cert


Description:

public bool set_phase2_client_cert (string cert_path, Setting8021xCKScheme scheme, Setting8021xCKFormat out_format) throws Error

Reads a certificate from disk and sets the NMSetting8021x:phase2-client-cert property with the raw certificate data if using the BLOB scheme, or with the path to the certificate file if using the PATH scheme.

Client certificates are used to identify the connecting client to the network when EAP-TLS is used as either the "phase 1" or "phase 2" 802.1x authentication method.

Parameters:

this

the Setting8021x

cert_path

when scheme is set to either PATH or BLOB, pass the path of the "phase2" client certificate file (PEM, DER, or PKCS#12 format). The path must be UTF-8 encoded; use to_utf8 to convert if needed. Passing null with any scheme clears the "phase2" client certificate.

scheme

desired storage scheme for the certificate

out_format

on successful return, the type of the certificate added

Returns:

true if the operation succeeded, false if it was unsuccessful