dex++ 0.3.1
C++ and C API reference
Loading...
Searching...
No Matches
dex::apk::Certificate Struct Reference

A signing certificate (X.509, decoded just enough for triage). More...

#include <apk/signing.hpp>

Public Member Functions

bool self_signed () const
 

Public Attributes

std::vector< uint8_t > der
 Full DER encoding.
 
std::string subject
 e.g. "CN=Foo, O=Bar, C=US" (recognized RDNs only).
 
std::string issuer
 Same form; equal to subject for self-signed certs.
 
std::string serial_hex
 Serial number, lowercase hex, no sign byte.
 
std::string not_before
 "YYYY-MM-DDTHH:MM:SSZ" (best effort).
 
std::string not_after
 
std::string sha1_hex
 Fingerprint of der, lowercase hex.
 
std::string sha256_hex
 The standard certificate identity for pinning.
 

Detailed Description

A signing certificate (X.509, decoded just enough for triage).

Member Function Documentation

◆ self_signed()

bool dex::apk::Certificate::self_signed ( ) const
inline

Member Data Documentation

◆ der

std::vector<uint8_t> dex::apk::Certificate::der

Full DER encoding.

◆ subject

std::string dex::apk::Certificate::subject

e.g. "CN=Foo, O=Bar, C=US" (recognized RDNs only).

◆ issuer

std::string dex::apk::Certificate::issuer

Same form; equal to subject for self-signed certs.

◆ serial_hex

std::string dex::apk::Certificate::serial_hex

Serial number, lowercase hex, no sign byte.

◆ not_before

std::string dex::apk::Certificate::not_before

"YYYY-MM-DDTHH:MM:SSZ" (best effort).

◆ not_after

std::string dex::apk::Certificate::not_after

◆ sha1_hex

std::string dex::apk::Certificate::sha1_hex

Fingerprint of der, lowercase hex.

◆ sha256_hex

std::string dex::apk::Certificate::sha256_hex

The standard certificate identity for pinning.


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