phpDocumentor Developer
[ class tree: Developer ] [ index: Developer ] [ all elements ]

Class: X509

Source Location: /core/X509.php

Class X509

Class Overview

This class contains handling functions for X.509 certificates

Located in /core/X509.php [line 26]



		
				Author(s):
		
		
		
Information Tags:
License:  see

Methods

[ Top ]
Method Summary
void   der2pem()  
the   pem2der()   transform PEM formed certificate to DER format
array   processCertificate()   prepare PEM and DER formats, MD5 and SHA1 fingerprints and subject of the certificate
array   splitCertificate()   split a certificate file into components

[ Top ]
Methods
der2pem  [line 44]

  void der2pem( $der_data  )

Parameters:
   $der_data: 

API Tags:
Access:  public


[ Top ]
pem2der  [line 35]

  the pem2der( mixed $pem_data  )

transform PEM formed certificate to DER format

Parameters:
mixed   $pem_data:  blob of data, which is hopefully a PEM certificate

API Tags:
Return:  DER representation of the certificate
Access:  public

Information Tags:
Author:  http://php.net/manual/en/ref.openssl.php (comment from 29-Mar-2007)

[ Top ]
processCertificate  [line 66]

  array processCertificate( blob $cadata  )

prepare PEM and DER formats, MD5 and SHA1 fingerprints and subject of the certificate

returns an array with the following fields:

 uuid
 pem	certificate in PEM format
 der	certificate in DER format
 md5	MD5 fingerprint
 sha1	SHA1 fingerprint
 name	certificate subject
 root value 1 if root certificate 0 otherwise
 ca   value 1 if CA certificate 0 otherwise

Parameters:
blob   $cadata:  certificate in ether PEM or DER format

API Tags:
Access:  public


[ Top ]
splitCertificate  [line 108]

  array splitCertificate( blob $cadata  )

split a certificate file into components

returns an array containing the PEM format of the certificate (s) if the file contains multiple certificates it gets split into components

Parameters:
blob   $cadata:  certificate in ether PEM or DER format

API Tags:
Access:  public


[ Top ]

Documentation generated on Wed, 08 Apr 2015 07:12:47 +0000 by phpDocumentor 1.4.4