Merge pull request #143 from rgutmen/mlts-pkcs12-compatibility

Mlts pkcs12 compatibility
This commit is contained in:
Owen Schwartz
2025-09-20 11:43:24 -04:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -175,7 +175,7 @@ func main() {
// Legacy PKCS12 support (deprecated)
tlsPrivateKey = os.Getenv("TLS_CLIENT_CERT_PKCS12")
// Keep backward compatibility with old environment variable name
if tlsPrivateKey == "" {
if tlsPrivateKey == "" && tlsClientKey == "" && len(tlsClientCAs) == 0 {
tlsPrivateKey = os.Getenv("TLS_CLIENT_CERT")
}
blueprintFile = os.Getenv("BLUEPRINT_FILE")