How-To (Certificate Manager-Self-Hosted): Test DigiCert ONE connection using PowerShell

How-To (Certificate Manager-Self-Hosted): Test DigiCert ONE connection using PowerShell

122
Created On 11/12/26 15:36 PM - Last Modified 11/12/26 16:28 PM


Objective


This article covers how to test connectivity to DigiCert ONE platform using PowerShell.

 

The DigiCert ONE API (US Region) reference docs can be found here: DigiCert® Trust Lifecycle Manager REST API 1.0.0

The DigiCert ONE API (EU Region) reference docs can be found here: DigiCert® Trust Lifecycle Manager REST API 1.0.0



Environment


TPP/TLSPDC TLSPDC

Procedure


  1. Remote into the target application server.
  2. Open PowerShell ISE as administrator.
  3. Copy and paste the following code into your ISE window:
    1. # Test DigiCertONE connection
      
      # Update this variable with your DigicertONE token
      $api_token = 'token-value'
      
      function Test-Settings {
      
          Write-Host "`nRunning as user: $($env:USERNAME)" -ForegroundColor Yellow
      
          $params = @{
              Method          = 'Get'
              Uri             = 'https://one.digicert.com/mpki/api/v1/hello';
              ContentType     = 'application/json'
              UseBasicParsing = $true
              Headers         = @{"x-api-key" = $api_token}
          }
      
          try{
              # Test PROD endpoint
              Write-Host "`nTest #1 - Query service status PROD (authorization required)" -ForegroundColor Cyan
              $response = Invoke-RestMethod @params
              Write-Host "API test #1 succeeded" -ForegroundColor Green
          } catch {
              Write-Host "API test #1 failed using token ($($params.headers['x-api-key'])): $($_)" -ForegroundColor Red
          }
      
          try{
              Write-Host "`nTest #2 - Query TLM application version (no authorization required)" -ForegroundColor Cyan
              $version_url = 'https://one.digicert.com/mpki/api/v1/version';
              $response2 = Invoke-RestMethod -Uri $version_url -ContentType 'application/json'
              Write-Host "API test #2 succeeded" -ForegroundColor Green
          } catch {
              Write-Host "API test #2 failed with an error: $($_)" -ForegroundColor Red
          }
      
          try{
              # Test DEMO endpoint
              Write-Host "`nTest #3 - Query service status DEMO (authorization required)" -ForegroundColor Cyan
              $params.Uri = 'https://demo.one.digicert.com/mpki/api/v1/hello';
              $response = Invoke-RestMethod @params
              Write-Host "API test #3 succeeded" -ForegroundColor Green
          } catch {
              Write-Host "API test #3 failed using token ($($params.headers['x-api-key'])): $($_)" -ForegroundColor Red
          }
      
          try{
              # Test PROD EU region endpoint
              Write-Host "`nTest #4 - Query service status PROD EU region (authorization required)" -ForegroundColor Cyan
              $params.Uri = 'https://one.nl.digicert.com/mpki/api/v1/hello';
              $response = Invoke-RestMethod @params
              Write-Host "API test #4 succeeded" -ForegroundColor Green
          } catch {
              Write-Host "API test #4 failed using token ($($params.headers['x-api-key'])): $($_)" -ForegroundColor Red
          }
      
      }
      
      Test-Settings
  4. Update the variable at line #4 with your DigiCert ONE API token.
  5. The script will make the three API calls below; Depending on the output, we can troubleshoot further.
    1. GET one.digicert.com/mpki/api/v1/hello - Requires authorization
    2. GET one.digicert.com/mpki/api/v1/version - Does not require authorization
    3. GET demo.one.digicert.com/mpki/api/v1/hello - Requires authorization
    4. GET one.nl.digicert.com/mpki/api/v1/hello - EU region, requires authorization
  6. Run the script and view the results in the console.
  7. Example output:
    1. Unable to connect to remote server.
      1. This type of error would indicate a network issue or firewall block. 
    2. The remote server returned an error: (403) Forbidden.
      1. This type of error would indicate permission issues with the API token, or incorrect token.
    3. Test successful.
  8. If these manual tests are successful, but the Trust Protection Foundation service still returns errors when trying to connect to DigiCert ONE, the issue may be related to the service account itself. In this case, run PowerShell ISE as the service account in question and try again.
  9. Process complete.


Actions
  • Print
  • Copy Link

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