KeyPair (open)
A keypair contains a private key and a certificate chain
Syntax
LOADLIB "mod::system/lib/keystore.whlib";
OBJECTTYPE KeyPair
Properties
- PROPERTY certificate
First certificate in chain
- PROPERTY certificatechain
Certificate chain (X509 encoded)
- PROPERTY description
Description of the keypair
- PROPERTY id
Id of the keypair
- PROPERTY name
Name of the keypair
- PROPERTY privatekey
Private key (should be PEM encoded)
- PROPERTY title
Title of the keypair
Functions
- BLOB FUNCTION GenerateCSR(RECORD options)
Generate a certificate signing request
- INTEGER FUNCTION GetDefaultRenewalWarningPeriod()
Suggested default renewal warning period in days
- STRING ARRAY FUNCTION GetEventMasks()
Returns the invalidation event masks for this key
- MACRO RecycleSelf()
Move the keypair to the recycle bin
- RECORD FUNCTION SignCertificateRequest(BLOB csr, RECORD options)
Signs a certificate request, generating a new certificate
- RECORD FUNCTION TestCertificate(BLOB certdata)
Tests if a certificate is valid
- MACRO UpdateMetadata(RECORD newmetadata)
Update keypair metadata