|
OpenVPN 3 Core Library
|
Namespaces | |
| namespace | DH_private |
Classes | |
| class | CRL |
| class | CRLList |
| class | DH |
| class | PKey |
| class | X509 |
| class | X509List |
| class | X509Store |
Typedefs | |
| using | BIGNUM_ptr = std::unique_ptr<::BIGNUM, decltype(&::BN_free)> |
Functions | |
| static std::string | x509_get_subject (::X509 *cert, bool new_format=false) |
| static std::string | X509_get_pem_encoding (::X509 *cert) |
| static std::string | x509_get_signature_algorithm (const ::X509 *cert) |
| static std::string | x509_get_field (::X509 *cert, const int nid) |
| static std::string | x509_get_serial (::X509 *cert) |
| static std::string | x509_get_serial_hex (::X509 *cert) |
| static std::size_t | x509_fingerprint_size () |
| static std::vector< uint8_t > | x509_get_fingerprint (const ::X509 *cert) |
| using openvpn::OpenSSLPKI::BIGNUM_ptr = typedef std::unique_ptr<::BIGNUM, decltype(&::BN_free)> |
Definition at line 32 of file x509certinfo.hpp.
|
inlinestatic |
Retrieves the X.509 certificate SHA256 fingerprint as binary
Definition at line 259 of file x509certinfo.hpp.
|
inlinestatic |
Retrieves a specific portion of the X.509 Certificate subject field
| cert | Pointer to a native OpenSSL X509 object containing the certificate |
| nid | Subject name ID to retrieve. See openssl/obj_mac.h for list of valid NID_* references. |
Definition at line 138 of file x509certinfo.hpp.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Retrieves the X.509 certificate serial number
| cert | Pointer to a native OpenSSL X509 object containing the certificate |
In case of failure, an empty string is returned.
Definition at line 205 of file x509certinfo.hpp.
|
inlinestatic |
Retrieves the X.509 certificate serial number as hexadecimal
| cert | Pointer to a native OpenSSL X509 object containing the certificate |
In case of failure, an empty string is returned.
Definition at line 237 of file x509certinfo.hpp.
|
inlinestatic |
Retrives the algorithm used to sign a X509 certificate
| cert | OpenSSL certificate |
Definition at line 114 of file x509certinfo.hpp.
|
inlinestatic |
Retrieve the complete X.509 Certificate Subject field
OpenSSL supports two ways of representing the subject line. The old format is deprecated, but there might be code expecting this old format. The old format looks like this:
/C=KG/ST=NA/O=OpenVPN-TEST/CN=Test-Server/emailAddress=me@myhost.mydomain
The new format is UTF-8 compliant and has a different formatting scheme:
C=KG, ST=NA, O=OpenVPN-TEST, CN=Test-Server,
emailAddress=me@my.nosp@m.host.nosp@m..mydo.nosp@m.main
| cert | Pointer to a native OpenSSL X509 object containing the certificate |
| new_format | (optional, default: false) Which format to use, true indicates the new format |
Definition at line 58 of file x509certinfo.hpp.