set_phase2_ca_cert


Description:

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

Reads a certificate from disk and sets the NMSetting8021x:phase2-ca-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.

Parameters:

this

the Setting8021x

cert_path

when scheme is set to either PATH or BLOB, pass the path of the "phase2" 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 "phase2" 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