scclib
Stable Cloud Computing C++ Library
|
Certificate bundle. More...
#include <cert.h>
Public Member Functions | |
CertBundle (std::istream &s) | |
void | parse (std::istream &s) |
Parse bundle from stream. More... | |
Certificate bundle.
This is a bundle of X.509 certificates.
Can be used to build up a list of trusted certificates, or "trust anchors".
Input files must be PEM-formatted, with certificates concatenated as follows: --—BEGIN CERTIFICATE--— <cert 1> --—END CERTIFICATE--— --—BEGIN CERTIFICATE--— <cert 2> --—END CERTIFICATE--— etc.
void scc::crypto::CertBundle::parse | ( | std::istream & | s | ) |
Parse bundle from stream.
Reads certificates until eof and adds them to the bundle.
Throws exception on any parse error (other than stream eof).