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

void Security::KeyData::loadFromFiles ( const AnyP::PortCfg port,
const char *  portType 

Definition at line 191 of file

References DBG_IMPORTANT, debugs, and port.

◆ loadX509CertFromFile()

bool Security::KeyData::loadX509CertFromFile ( )

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

Definition at line 22 of file

References SBuf::c_str(), cert, certFile, DBG_IMPORTANT, debugs, Security::ErrorString(), Ssl::ReadX509Certificate(), and Security::LockingPointer< T, UnLocker, Locker >::reset().

◆ loadX509ChainFromFile()

void Security::KeyData::loadX509ChainFromFile ( )

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

Definition at line 85 of file

References DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, Security::ErrorString(), Security::LockingPointer< T, UnLocker, Locker >::get(), and Ssl::ReadX509Certificate().

◆ loadX509PrivateKeyFromFile()

bool Security::KeyData::loadX509PrivateKeyFromFile ( )

Read X.509 private key from file.

Definition at line 148 of file

References Ssl::AskPasswordCb(), Config, DBG_IMPORTANT, debugs, SquidConfig::Program, Ssl::ReadPrivateKeyFromFile(), and SquidConfig::ssl_password.

Member Data Documentation

◆ cert

Security::CertPointer Security::KeyData::cert

Definition at line 31 of file KeyData.h.

Referenced by Ssl::chainCertificatesToSSLContext(), and loadX509CertFromFile().

◆ certFile

SBuf Security::KeyData::certFile

Definition at line 27 of file KeyData.h.

Referenced by loadX509CertFromFile(), and Security::PeerOptions::parse().

◆ chain

Security::CertList Security::KeyData::chain

Definition at line 35 of file KeyData.h.

Referenced by Ssl::chainCertificatesToSSLContext().

◆ pkey

Security::PrivateKeyPointer Security::KeyData::pkey

Definition at line 33 of file KeyData.h.

◆ privateKeyFile

SBuf Security::KeyData::privateKeyFile

Definition at line 28 of file KeyData.h.

Referenced by Security::PeerOptions::parse().

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






Web Site Translations