file_is_private_key


Description:


public bool file_is_private_key (string filename, out bool out_encrypted)

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

der", ".key", ".pem", or ".p12"), and contains a private key in a format recognized by NetworkManager.

Parameters:

filename

name of the file to test

out_encrypted

on return, whether the file is encrypted

Returns:

true if the file is a private key, false if it is not


Namespace: NM.Utils
Package: libnm



2022 vala-language.org