set_ca_cert


Description:

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

Reads a certificate from disk and sets the ca_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.

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 CA certificate file (PEM or DER format). The path must be UTF-8 encoded; use to_utf8 to convert if needed. Passing null with any scheme clears the CA 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