#include <davixx509cred.hpp>
Public Member Functions | |
| X509Credential (const X509Credential &orig) | |
| X509Credential & | operator= (const X509Credential &orig) |
| int | loadFromFileP12 (const std::string &filepath_p12_cred, const std::string &password, DavixError **err) |
| int | loadFromFilePEM (const std::string &filepath_priv_key, const std::string &filepath_cred, const std::string &password, DavixError **err) |
| bool | hasCert () const |
Friends | |
| struct | X509CredentialExtra |
| bool Davix::X509Credential::hasCert | ( | ) | const |
check if the container owns a certificate
| int Davix::X509Credential::loadFromFileP12 | ( | const std::string & | filepath_p12_cred, | |
| const std::string & | password, | |||
| DavixError ** | err | |||
| ) |
load a credential from a PKCS12 file
| filepath_p12_cred | : path to the p12 credential file | |
| password | : pass to decrypt the credential, empty string if nothing | |
| err | : davix error report |
| int Davix::X509Credential::loadFromFilePEM | ( | const std::string & | filepath_priv_key, | |
| const std::string & | filepath_cred, | |||
| const std::string & | password, | |||
| DavixError ** | err | |||
| ) |
load a credential from a PEM file support RFC-3820 proxy certificate, "globus" proxy certificate and "VOMS" proxy certificate support for concatenated format
to use a concatenated PEM cred, just set filepath_priv_key = filepath_cred = concat cred path
| filepath_priv_key | : path to the private key file | |
| filepath_cred | : path to the credential file | |
| password | : pass to decrypt the credential, empty string if unencrypted | |
| err | : davix error report |
1.4.7