CreateKey Method
Creates an OpenPGP key pair.
Object Oriented Interface
public function doCreateKey($userid, $passphrase);
Procedural Interface
ipworksencrypt_keymgr_do_createkey($res, $userid, $passphrase);
Remarks
This method creates a new OpenPGP key pair. The UserId parameter specifies the user Id of the key.
The UserId format is:
FirstName LastName (Comment) <Email>Not all values are required when selecting or generating a key, but at least FirstName or Email are required.
Additional configuration settings may be set to further configure the details of the key being created. Please see the following settings for details:
- KeyEncryptionAlgorithm
- KeyUsage
- KeyValidityTime
- PublicKeyLength
- PublicKeyAlgorithm
- PublicKeySignatureHashAlgorithm