OPENSSL-ENV(7ssl) OpenSSL OPENSSL-ENV(7ssl)

openssl-env - OpenSSL environment variables

The OpenSSL libraries use environment variables to override the compiled-in default paths for various data. To avoid security risks, the environment is usually not consulted when the executable is set-user-ID or set-group-ID.

Specifies the path to a certificate transparency log list. See CTLOG_STORE_new(3).
Specifies the path to the openssl executable. Used by the rehash script (see "Script Configuration" in openssl-rehash(1)) and by the CA.pl script (see "NOTES" in CA.pl(1)
Specifies the path to a configuration file and the directory for included files. See config(5).
Specifies a configuration option and filename for the req and ca commands invoked by the CA.pl script. See CA.pl(1).
Specifies the directory from which dynamic engines are loaded. See openssl-engine(1).
If built with debugging, this allows memory allocation to fail. See OPENSSL_malloc(3).
Specifies the directory from which cryptographic providers are loaded. Equivalently, the generic -provider-path command-line option may be used.
By default the OpenSSL trace feature is disabled statically. To enable it, OpenSSL must be built with tracing support, which may be configured like this: "./config enable-trace"

Unless OpenSSL tracing support is generally disabled, enable trace output of specific parts of OpenSSL libraries, by name. This output usually makes sense only if you know OpenSSL internals well.

The value of this environment varialble is a comma-separated list of names, with the following available:

Traces the OpenSSL trace API itself.
Traces OpenSSL library initialization and cleanup.
Traces the TLS/SSL protocol.
Traces the ciphers used by the TLS/SSL protocol.
Show details about provider and engine configuration.
The function that is used by RSA, DSA (etc) code to select registered ENGINEs, cache defaults and functional references (etc), will generate debugging summaries.
Reference counts in the ENGINE structure will be monitored with a line of generated for each change.
Traces PKCS#5 v2 key generation.
Traces PKCS#12 key generation.
Traces PKCS#12 decryption.
Generates the complete policy tree at various points during X.509 v3 policy evaluation.
Traces BIGNUM context operations.
Traces CMP client and server activity.
Traces STORE operations.
Traces decoder operations.
Traces encoder operations.
Traces decrementing certain ASN.1 structure references.
Traces the HTTP client and server, such as messages being sent and received.
If set, then UI_OpenSSL(3) returns UTF-8 encoded strings, rather than ones encoded in the current code page, and the openssl(1) program also transcodes the command-line parameters from the current code page to UTF-8. This environment variable is only checked on Microsoft Windows platforms.
The state file for the random number generator. This should not be needed in normal use. See RAND_load_file(3).
Specify the default directory or file containing CA certificates. See SSL_CTX_load_verify_locations(3).
Additional arguments for the tsget(1) command.
OpenSSL supports a number of different algorithm implementations for various machines and, by default, it determines which to use based on the processor capabilities and run time feature enquiry. These environment variables can be used to exert more control over this selection process. See OPENSSL_ia32cap(3), OPENSSL_s390xcap(3) and OPENSSL_riscvcap(3).
Specify a proxy hostname. See OSSL_HTTP_parse_url(3).
Specifies a QUIC qlog output directory. See openssl-qlog(7).
Used to set a QUIC qlog filter specification. See openssl-qlog(7).

Copyright 2019-2024 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.

2024-10-23 3.4.0