Info: How To Test DigiCert CA Access Outside Venafi TPP

Info: How To Test DigiCert CA Access Outside Venafi TPP

105
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:56 PM


Symptom


Applies To:

Windows PowerShell; Digicert CA Connectivity for Certificate Manager, Self-Hosted

Information:

In situations where creating a new DigiCert CA Template and Validation is failing, you can use the following PowerShell function to test directly from the Windows Server OS hosting Venafi TPP.

NOTE: this KB covers a specific test against www.digicert.com. Be sure you also have access to api.digicert.com through your firewalls, etc. or else enrollment and CA Template creation will fail.

Code:

$global:base_url = "https://www.digicert.com/services/v2"
$global:UserPass = 'XXXXXABCDEF1234ABCDEFG1234ABCDEFGHI1234567ABCDEFG12345678XXXXXX'
try
{
# look up the organization id
$url = $global:base_url + "/organization"

$headers = @{
"X-DC-DEVKEY"=$global:UserPass;
"Accept"="application/json"
}
Invoke-RestMethod -Uri $url -Method Get -Headers $headers -ContentType "application/json"
return @{ Result="Success" }
}
catch
{
throw Write-Host($_.Exception)
}

NOTE: "$global:UserPass" is your DigiCert API Key

Execution:

Copy/Paste directly into a Powershell prompt or execute in Powershell ISE.

Example Output:

organizations 
-------------

{@{id=123456789; status=active; name=Venafi, Inc.; display_name=Venafi, Inc.; is_active=True; is_hidden=False; address=175 E 400 S; city=Salt Lake City; state=Utah; zip=84111; country=us; telephone=+1 (801) 676-6900; container=}, @{id=123456789; status=active; name=Venafi, Inc.; display_name=Venafi, Inc.; is_active=True; is_hidden=False; address=175 E 400 S; city=Salt Lake

Alternative Code:

If you have CURL natively installed in Windows, this command works as well:

curl -v https://www.digicert.com/services/v2/organization -H "Accept: application/json" -H "X-DC-DEVKEY: <API_Key>"


Environment


TPP/TLSPDC TLSPDC

Actions
  • Print
  • Copy Link

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