set_client_cert


Description:

public bool set_client_cert (string value, Setting8021xCKScheme scheme, Setting8021xCKFormat out_format) throws Error

Reads a certificate from disk and sets the client_cert property with the raw certificate data if using the nm_setting_802_1x_ck_scheme_blob scheme, or with the path to the certificate file if using the nm_setting_802_1x_ck_scheme_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

value

when scheme is set to either nm_setting_802_1x_ck_scheme_path or nm_setting_802_1x_ck_scheme_blob, pass the path of the 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 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