scclib
Stable Cloud Computing C++ Library
Public Member Functions | List of all members
scc::crypto::CertBundle Struct Reference

Certificate bundle. More...

#include <cert.h>

Inheritance diagram for scc::crypto::CertBundle:
Inheritance graph
[legend]
Collaboration diagram for scc::crypto::CertBundle:
Collaboration graph
[legend]

Public Member Functions

 CertBundle (std::istream &s)
 
void parse (std::istream &s)
 Parse bundle from stream. More...
 

Detailed Description

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.

Definition at line 1431 of file cert.h.

Member Function Documentation

◆ parse()

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).


The documentation for this struct was generated from the following file: