OPENSSL-ENV(7ossl)
π OPENSSL-ENV β OpenSSL environment variables π
okay so bestie, welcome to the openssl-env(7ossl) page!! this is literally the group chat of environment variables that the OpenSSL libraries use to override the compiled-in default paths for all sorts of data. β¨
π«Ά lowkey important: to avoid security risks, the environment is usually not consulted when the executable is set-user-ID or set-group-ID. so if you're running setuid/setgid binaries, these vars get ignored, no cap.
πΈ DESCRIPTION πΈ
here's the full roster of env vars, bestie. every single one, i'm not skipping any, periodt.
CTLOG_FILEβ Specifies the path to a certificate transparency log list. π SeeCTLOG_STORE_new(3).OPENSSLβ Specifies the path to theopensslexecutable. Used by the rehash script (see "Script Configuration" inopenssl-rehash(1)) and by theCA.plscript (see "NOTES" inCA.pl(1)).OPENSSL_CONF,OPENSSL_CONF_INCLUDEβ Specifies the path to a configuration file and the directory for included files. π Seeconfig(5).OPENSSL_CONFIGβ Specifies a configuration option and filename for thereqandcacommands invoked by theCA.plscript. SeeCA.pl(1).OPENSSL_ENGINESβ Specifies the directory from which dynamic engines are loaded. π₯ Seeopenssl-engine(1).OPENSSL_MALLOC_FD,OPENSSL_MALLOC_FAILURESβ If built with debugging, this allows memory allocation to fail. π SeeOPENSSL_malloc(3).OPENSSL_MODULESβ Specifies the directory from which cryptographic providers are loaded. Equivalently, the generic-provider-pathcommand-line option may be used. π¦OPENSSL_TRACEβ 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:
TRACEβ Traces the OpenSSL trace API itself. πINITβ Traces OpenSSL library initialization and cleanup.TLSβ Traces the TLS/SSL protocol.TLS_CIPHERβ Traces the ciphers used by the TLS/SSL protocol.CONFβ Show details about provider and engine configuration.ENGINE_TABLEβ The function that is used by RSA, DSA (etc) code to select registered ENGINEs, cache defaults and functional references (etc), will generate debugging summaries.ENGINE_REF_COUNTβ Reference counts in the ENGINE structure will be monitored with a line of generated for each change.PKCS5V2β Traces PKCS#5 v2 key generation.PKCS12_KEYGENβ Traces PKCS#12 key generation.PKCS12_DECRYPTβ Traces PKCS#12 decryption.X509V3_POLICYβ Generates the complete policy tree at various points during X.509 v3 policy evaluation.BN_CTXβ Traces BIGNUM context operations.CMPβ Traces CMP client and server activity.STOREβ Traces STORE operations.DECODERβ Traces decoder operations.ENCODERβ Traces encoder operations.REF_COUNTβ Traces decrementing certain ASN.1 structure references.HTTPβ Traces the HTTP client and server, such as messages being sent and received.
OPENSSL_WIN32_UTF8β If set, thenUI_OpenSSL(3)returns UTF-8 encoded strings, rather than ones encoded in the current code page, and theopenssl(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.RANDFILEβ The state file for the random number generator. This should not be needed in normal use. SeeRAND_load_file(3).SSL_CERT_DIR,SSL_CERT_FILEβ Specify the default directory or file containing CA certificates. π SeeSSL_CTX_load_verify_locations(3).TSGETβ Additional arguments for thetsget(1)command.OPENSSL_ia32cap,OPENSSL_sparcv9cap,OPENSSL_ppccap,OPENSSL_armcap,OPENSSL_s390xcap,OPENSSL_riscvcapβ 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. SeeOPENSSL_ia32cap(3),OPENSSL_s390xcap(3)andOPENSSL_riscvcap(3).NO_PROXY,HTTPS_PROXY,HTTP_PROXYβ Specify a proxy hostname. SeeOSSL_HTTP_parse_url(3).QLOGDIRβ Specifies a QUIC qlog output directory. Seeopenssl-qlog(7).OSSL_QFILTERβ Used to set a QUIC qlog filter specification. Seeopenssl-qlog(7).SSLKEYLOGFILEβ Used to produce the standard format output file for SSL key logging. π Optionally set this variable to a filename to log all secrets produced by SSL connections. Note, use of the environment variable is predicated on configuring OpenSSL at build time with theenable-sslkeylogfeature. The file format standard can be found at <https://datatracker.ietf.org/doc/draft-ietf-tls-keylogfile/>.
π BESTIE, SECURITY WARNING, FR FR: the use of SSLKEYLOGFILE poses an explicit security risk. By recording the exchanged keys during an SSL session, it allows any available party with read access to the file to decrypt application traffic sent over that session. π¨ Use of this feature should be restricted to test and debug environments only. do not do this in prod, i'm begging you. π
π COPYRIGHT π
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>.
and that's the whole page, bestie!! β¨ version 3.5.0, dated 2026-09-25, that's OPENSSL-ENV(7ossl) signing off. ily, go configure your environment responsibly ππ§ββοΈπΈ
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms