TLS certificate and private key details from squid.conf. More...

#include <KeyData.h>

Collaboration diagram for Security::KeyData:

Public Member Functions

void loadFromFiles (const AnyP::PortCfg &, const char *portType)
 load the contents of certFile and privateKeyFile into memory cert, pkey and chain More...
 

Public Attributes

SBuf certFile
 path of file containing PEM format X.509 certificate More...
 
SBuf privateKeyFile
 path of file containing private key in PEM format More...
 
Security::CertPointer cert
 public X.509 certificate from certFile More...
 
Security::PrivateKeyPointer pkey
 private key from privateKeyFile More...
 
Security::CertList chain
 any certificates which must be chained from cert More...
 

Private Member Functions

bool loadX509CertFromFile ()
 
void loadX509ChainFromFile ()
 
bool loadX509PrivateKeyFromFile ()
 

Detailed Description

Definition at line 20 of file KeyData.h.

Member Function Documentation

◆ loadFromFiles()

◆ loadX509CertFromFile()

bool Security::KeyData::loadX509CertFromFile ( )
private

◆ loadX509ChainFromFile()

void Security::KeyData::loadX509ChainFromFile ( )
private

Read certificate from file. See also: Ssl::ReadX509Certificate function, gadgets.cc file

Definition at line 86 of file KeyData.cc.

References SBuf::c_str(), cert, certFile, chain, DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, Security::ErrorString(), and Security::LockingPointer< T, UnLocker, Locker >::get().

Referenced by loadFromFiles().

◆ loadX509PrivateKeyFromFile()

bool Security::KeyData::loadX509PrivateKeyFromFile ( )
private

Member Data Documentation

◆ cert

◆ certFile

SBuf Security::KeyData::certFile

◆ chain

Security::CertList Security::KeyData::chain

◆ pkey

Security::PrivateKeyPointer Security::KeyData::pkey

◆ privateKeyFile

SBuf Security::KeyData::privateKeyFile

The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors