file_is_certificate


Description:


public bool file_is_certificate (string filename)

Tests if filename has a valid extension for an X.509 certificate file (".

cer", ".crt", ".der", or ".pem"), and contains a certificate in a format recognized by NetworkManager.

Parameters:

filename

name of the file to test

Returns:

true if the file is a certificate, false if it is not


Namespace: NM.Utils
Package: libnm



2022 vala-language.org