Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
OpenXPKI::Crypto::X509User Contributed Perl DocumentaOpenXPKI::Crypto::X509(3)

Name
       OpenXPKI::Crypto::X509

Description
       This class is used for the handling of X.509v3 certificates. All
       functions of OpenXPKI::Crypto::Object are supported. All	functions
       which differ from the base class	OpenXPKI::Crypto::Object are described
       below.

Functions
   new
       The constructor supports	two options - TOKEN and	DATA.  TOKEN must be a
       crypto token from the token manager. This is necessary to extract some
       informations from the data. The parameter DATA must contain a PEM
       encoded certificate. This is the	base of	the object.

   get_converted
       expects only one	value -	the requested format of	the certificate.  PEM,
       TXT, PKCS7 and DER are supported. TXT is	a plain	text representation
       which can be directly displayed to the user.

   get_identifier
       returns the base64-encoded SHA1 hash of the DER representation of the
       certificate, which is used as an	identifier in the database

   set_status
       sets the	certificate status, i.e. ISSUED, SUSPENDED, REVOKED

   get_status
       gets the	certificate status

   get_subject_key_id
       gets the	subject	key identifier from the	extension, if present.	If
       not, returns undef.

   get_authority_key_id
       gets the	authority key identifier from the extension, if	present.
       Returns either the key identifier as a string or	a hash reference
       containing the ISSUER_NAME and ISSUER_SERIAL field, if the key
       identifier is not present. If none of the above are available, returns
       undef.

   to_db_hash
       returns the certificate data in a format	that can be inserted into the
       database	table 'CERTIFICATE'.

perl v5.24.1			  2017-07-03	     OpenXPKI::Crypto::X509(3)

Name | Description | Functions

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=OpenXPKI::Crypto::X509&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help