#include <LocalManagement.hpp>
Static Public Member Functions | |
| static void | importAsLocalCertificate (const String &pkcs12File, const String &password, const String &destinationCAsDir, const String &destinationCertFile, const String &destinationKeyFile) |
| static void | importAsLocalCertificate (const limal::ByteBuffer &pkcs12Data, const String &password, const String &destinationCAsDir, const String &destinationCertFile, const String &destinationKeyFile) |
| static void | importCommonServerCertificate (const String &pkcs12File, const String &password) |
| static void | importCommonServerCertificate (const limal::ByteBuffer &pkcs12Data, const String &password) |
| static CertificateData | getCertificate (const String &file, FormatType type) |
| static CertificateData | getCertificate (const limal::ByteBuffer &data, FormatType type) |
| static RequestData | getRequest (const String &file, FormatType type) |
| static RequestData | getRequest (const limal::ByteBuffer &data, FormatType type) |
| static CRLData | getCRL (const String &file, FormatType type) |
| static CRLData | getCRL (const limal::ByteBuffer &data, FormatType type) |
| static limal::ByteBuffer | readFile (const String &file) |
| static void | writeFile (const limal::ByteBuffer &data, const String &file, bool overwrite=true, mode_t mode=0644) |
| static limal::ByteBuffer | x509Convert (const limal::ByteBuffer &certificate, FormatType inform, FormatType outform) |
| static limal::ByteBuffer | rsaConvert (const limal::ByteBuffer &key, FormatType inform, FormatType outform, const String &inPassword, const String &outPassword, const String &algorithm="des3") |
| static limal::ByteBuffer | crlConvert (const limal::ByteBuffer &crl, FormatType inform, FormatType outform) |
| static limal::ByteBuffer | reqConvert (const limal::ByteBuffer &req, FormatType inform, FormatType outform) |
| static limal::ByteBuffer | createPKCS12 (const limal::ByteBuffer &certificate, const limal::ByteBuffer &key, const String &inPassword, const String &outPassword, const limal::ByteBuffer &caCert, const String &caPath, bool withChain=false) |
| static limal::ByteBuffer | pkcs12ToPEM (const limal::ByteBuffer &pkcs12, const String &inPassword, const String &outPassword, const String &algorithm="des3") |
This class provides functions for local certificate management which are usefull on every host.
|
||||||||||||||||||||||||||||||||
|
Create a PKCS12 bundle. Certificate and key has to be in PEM format.
|
|
||||||||||||||||
|
Convert a CRL from PEM/DER to DER/PEM format
|
|
||||||||||||
|
Parse a Certificate and return the data
|
|
||||||||||||
|
Parse a Certificate and return the data
|
|
||||||||||||
|
Parse a CRL and return the data
|
|
||||||||||||
|
Parse a CRL and return the data
|
|
||||||||||||
|
Parse a Request and return the data
|
|
||||||||||||
|
Parse a Request and return the data
|
|
||||||||||||||||||||||||
|
Import a certificate to a specific destination
|
|
||||||||||||||||||||||||
|
Import a certificate to a specific destination
|
|
||||||||||||
|
Import a certificate as common server certificate. This function store the CAs to '/etc/ssl/certs', the certificate to '/etc/ssl/servercerts/servercert.pem' and the private key to '/etc/ssl/servercerts/serverkey.pem'.
|
|
||||||||||||
|
Import a certificate as common server certificate. This function store the CAs to '/etc/ssl/certs', the certificate to '/etc/ssl/servercerts/servercert.pem' and the private key to '/etc/ssl/servercerts/serverkey.pem'.
|
|
||||||||||||||||||||
|
Extract PKCS12 to PEM
|
|
|
Read a file from the harddisk and return the content as ByteBuffer Object
|
|
||||||||||||||||
|
Convert a Request from PEM/DER to DER/PEM format
|
|
||||||||||||||||||||||||||||
|
Convert a rsa key from PEM/DER to DER/PEM. This function can also be used to set a new password or remove the encryption from the key. An encrypted key is only available if the format is PEM.
|
|
||||||||||||||||||||
|
Write data into a file
|
|
||||||||||||||||
|
Convert a certificate from PEM/DER to DER/PEM format
|
1.4.6