Vault - CACert utility fails to create certificate request

Vault - CACert utility fails to create certificate request

122
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:10 PM


Symptom


When trying to create a new certificate request with the CACert utility containing several Subject Alternative Names (SANs: DNS, IP), the process fails or the certificate request gets truncated, dependening on the provided command parameters:

A) Specifying the CommonName and SubjAlt options explicitly:
C:\> .\CACert.exe request /ReqOutFile C:\RootCA\multiSAN.csr /CommonName "vault.domain.tld" /SubjAlt "DNS:vault.domain.tld, DNS:vault01.domain.tld, DNS:vault02.domain.tld, DNS:vault03.domain.tld, DNS:vault04.domain.tld, DNS:vault05.domain.tld, DNS:vault06.domain.tld, DNS:vault07.domain.tld, DNS:vault08.domain.tld, DNS:vault09.domain.tld, DNS:vault10.domain.tld, DNS:vault11.domain.tld, DNS:vault12.domain.tld, DNS:vault13.domain.tld, DNS:vault14.domain.tld"

The resulting error appears:

CLP004S: Value "DNS:vault01.domain.tld, DNS:vault02.domain.tld, DNS:vault03.domain.tld, DNS:vault04.domain.tld,DNS:vault05.domain.tld, DNS:vault06.domain.tld..." for parameter "Subject alternative names (eg, "DNS:www.cyber-ark" is too long

B) Or running the CACert utility in interactive mode (The necessary parameters are requested during the command execution):
C:\> .\CACert.exe request /ReqOutFile C:\RootCA\multiSAN.csr

In this case, the command doesn't show any error message and the certificate request is created. However, when the certificate is issued it doesn't include all the provided Subject Alternative Names.
This situation can be verified as follows:

- Opening the certificate in Windows > Details tab > Select the 'Subject Alternative Name' attribute:
... DNS Name=vault11.domain.tld DNS Name=vault12 ...

- Via OpenSSL command:
# openssl x509 -in C:\RootCA\multiSAN.csr -noout -text ... X509v3 Subject Alternative Name: DNS:vault11.domain.tld X509v3 Subject Alternative Name: DNS:vault12 X509v3 Key Usage: Digital Signature, Key Encipherment X509v3 Extended Key Usage: TLS Web Server Authentication ...


Environment


10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8 PAS (any version)

Cause


The CACert utility has a limit of Subject Alternative Names because, according to the best security practices, the connection to the Vault should be restricted to a few SANs.
 


Resolution


1- Issue the certificate directly from the CA in PFX format including several Subject Alternative Names
2- Import the PFX certificate into the Vault:
.\CACert.exe import /infile cert.pfx


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001ZN7CAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail