CryptoKey

Inherits: Resource < Reference < Object

Category: Core

Brief Description

A cryptographic key (RSA).

Methods

Error load ( String path )
Error save ( String path )

Description

The CryptoKey class represents a cryptographic key. Keys can be loaded and saved like any other Resource.

They can be used to generate a self-signed X509Certificate via Crypto.generate_self_signed_certificate and as private key in StreamPeerSSL.accept_stream along with the appropriate certificate.

Method Descriptions

Loads a key from path (“*.key” file).


Saves a key to the given path (should be a “*.key” file).