libdcp
Functions
certificate_chain.cc File Reference

CertificateChain class. More...

#include "certificate_chain.h"
#include "compose.hpp"
#include "dcp_assert.h"
#include "exceptions.h"
#include "util.h"
#include "warnings.h"
#include <asdcp/KM_util.h>
#include <libcxml/cxml.h>
#include <libxml++/libxml++.h>
#include <xmlsec/xmldsig.h>
#include <xmlsec/dl.h>
#include <xmlsec/app.h>
#include <xmlsec/crypto.h>
#include <openssl/sha.h>
#include <openssl/bio.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <fstream>
#include <iostream>

Go to the source code of this file.

Functions

static void command (string cmd)
 
static string public_key_digest (boost::filesystem::path private_key, boost::filesystem::path openssl)
 

Detailed Description

CertificateChain class.

Definition in file certificate_chain.cc.

Function Documentation

◆ command()

static void command ( string  cmd)
static

Run a shell command.

Parameters
cmdCommand to run (UTF8-encoded).

Definition at line 77 of file certificate_chain.cc.

◆ public_key_digest()

static string public_key_digest ( boost::filesystem::path  private_key,
boost::filesystem::path  openssl 
)
static

Extract a public key from a private key and create a SHA1 digest of it.

Parameters
private_keyPrivate key
opensslopenssl binary name (or full path if openssl is not on the system path).
Returns
SHA1 digest of corresponding public key, with escaped / characters.

Definition at line 128 of file certificate_chain.cc.