GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Crypto::SecretManager(3) User Contributed Perl Documentation OpenXPKI::Crypto::SecretManager(3)

OpenXPKI::Crypto::SecretManager

Management of secrets, i.e. passphrases/keys for cryptographic tokens.

Required: instance of OpenXPKI::Crypto::API.

Returns the configuration HashRef of the secret specified by the given name or "undef" if realm or secret do not exist.

When called first this method tries to load the secret data from configuration and (the serialized data) from the cache.

Set the named secret to the given $secret_def HashRef.

Create and return the internal config HashRef incl. object for the secret of the given name.

Returns:

    {
        ... # options from configuration file
        _alias => STR,
        _realm => STR,
        _ref => OBJECT with Moose role OpenXPKI::Crypto::SecretRole,
    }

Returns an object with Moose role OpenXPKI::Crypto::SecretRole according to the given config data HashRef.

Uses Template to render the names (or paths for encrypted share type "FILESYSTEM") for all "n" encrypted secret shares.

Returns an ArrayRef of all "n" share names.

Try to load the secret's serialized data from the cache (session or DB).

Returns serialized secret data to be passed to "thaw" in OpenXPKI::Crypto::SecretRole or "undef".

Save the secret's serialized data to the cache (session or DB).

Removes the secret's serialized data from the cache (session or DB).

List type and name of all secret groups in the current realm

Returns:

    {
        'my-secret' => {
            label => STR,
            type  => STR,
            complete => BOOL,
            required_parts => NUM,
            inserted_parts => NUM,
        },
        'other-secret' => {
            ...
        },
        ...
    }

Returns the number of required parts to complete this secret.

Returns the number of parts that are already inserted / set.

Check if the secret is complete (all passwords loaded).

Returns 0 or 1.

Get the plaintext value of the stored secret. This requires that the secret was created with the "export" flag set, otherwise an exception is thrown.

Returns the secret value or "undef" if the secret is not complete.

Set the secret "VALUE" of the given "GROUP" (aka alias), for plain secrets omit "PART".

Purge the secret of the given name.

Initialize a secret transfer to the current node. Creates a keypair for negotiation of the transfer secret and writes placeholder items for this key into the database.

Needs to be executed on the sending node, i.e. the one that already has established/completed its secrets.

Expects the public key created by "request_transfer" in $pubkey and tries to fill the database entries assigned to this transfer key.

Needs to be executed on the receiving node, expects the id and public key generated by the sending node via "perform_transfer".

Transfers the exported secrets from the database (transfer pool) into the secret cache so they can be used by all children of this node.

2022-05-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.