Method | Description |
---|---|
__init__(self, key, key_format, passphrase) | Load a private key from a string, and access it using its passphrase |
fromFile(key_file_path, passphrase) | Load a private key from a file, and access it using its passphrase |
fromURI(key_uri, passphrase) | Load a private key from an Universal Resource Identifier (URI) string. |
Table 5.54. Method summary
Initializes a PrivateKey instance by loading a private key from a string, and accesses it using its passphrase. To load a private key from a file, use the PrivateKey.fromFile method.
Initializes a PrivateKey instance by loading a private key from a file, and accesses it using its passphrase.
Initializes a PrivateKey instance by loading a private key from an URI. Supported URI schemes are 'file:' and 'pkcs11:' for loading a private key from an external file, or from a HSM device. URI can contain authentiction information (e.g. PIN code) also. Note, the URI string will be stored unencrypted.
© 2021 BalaSys IT Security.
Send your comments to support@balasys.hu