Struct Poco::Net::Context::Params
Author: Applied Informatics Software Engineering GmbH and Contributors

# Poco::Net::Context

# struct Params

Library: NetSSL_OpenSSL
Package: SSLCore
Header: Poco/Net/Context.h

## Constructors

### Params

Params();

Initializes the struct with default values.

## Variables

### caLocation

std::string caLocation;

Path to the file or directory containing the CA/root certificates. Can be empty if the OpenSSL builtin CA certificates are used (see loadDefaultCAs).

### certificateFile

std::string certificateFile;

Path to the certificate file (in PEM format). If the private key and the certificate are stored in the same file, this can be empty if privateKeyFile is given.

### cipherList

std::string cipherList;

Specifies the supported ciphers in OpenSSL notation. Defaults to "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH".

### dhParamsFile

std::string dhParamsFile;

Specifies a file containing Diffie-Hellman parameters. If empty, the default parameters are used.

### ecdhCurve

std::string ecdhCurve;

Specifies the name of the curve to use for ECDH, based on the curve names specified in RFC 4492. Defaults to "prime256v1".

### loadDefaultCAs

bool loadDefaultCAs;

Specifies whether the builtin CA certificates from OpenSSL are used. Defaults to false.

### privateKeyFile

std::string privateKeyFile;

Path to the private key file used for encryption. Can be empty if no private key file is used.

### verificationDepth

int verificationDepth;

Sets the upper limit for verification chain sizes. Verification will fail if a certificate chain larger than this is encountered. Defaults to 9.

### verificationMode

VerificationMode verificationMode;

Specifies whether and how peer certificates are validated. Defaults to VERIFY_RELAXED.