How to: Test SCEP Enabled ZTPKI Policy with cURL and VisualSCEP

How to: Test SCEP Enabled ZTPKI Policy with cURL and VisualSCEP

159
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 16:12 PM


Symptom


Applies To:

TLS Protect Datacenter

ZTPKI

Summary:

VisualSCEP and cURL can be used to test ZTPKI connectivity and certificate issuance. Doing so requires the challenge password and a specific URL that contains the ZTPKI Policy ID. Intune testing is not possible with this methods.

To begin, you need the Policy ID and challenge password. Find the account in ZTPKI, then the SCEP enabled policy. Copy the Policy ID from that page. The challenge password will be found outside of ZTPKI if it was saved. It can not be viewed in the ZTPKI console after it has been set.

cURL:

Get CA Capabilities:

curl https://ztpki-staging.venafi.com/42c85a2b-a488-7c8099b11447/pkiclient.exe?operation=GetCACaps

You should see something like:

AES
SHA-256
POSTPKIOperation

Get CA Certificate:

curl https://ztpki-staging.venafi.com/42c85a2b-a488-7c8099b11447/pkiclient.exe?operation=GetCACert | openssl pkcs7 -inform DER -print_certs

You should see output beginning with:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4618 100 4618 0 0 13951 0 --:--:-- --:--:-- --:--:-- 13951
subject=C=US, O=Support, OU=SCEP API Use Only, CN=SCEP Support ICA 1 RA Certificate
issuer=C=US, O=Venafi, CN=ZTPKI Demo RSA ICA 1
-----BEGIN CERTIFICATE-----
MIIFdjCCA16gAwIBAgIUFVKSigQfb9MBn6YHILk3rll+wuMwDQYJKoZIhvcNAQEL
BQAwPTELMAkGA1UEBhMCVVMxDzANBgNVBAoMBlZlbmFmaTEdMBsGA1UEAwwUWlRQ
S0kgRGVtbyBSU0EgSUNBIDEwHhcNMjQxMDE1MTYxNDU4WhcNMjkxMDE0MTYxNDU4
...

NOTE: Submitting a SCEP request via cURL is possible but not covered in this KB. Use VisualSCEP if you need to test certificate issuance.

VisualSCEP:

https://support.venafi.com/hc/en-us/articles/115002868072-VisualScep-Utility

Open VisualSCEP and enter the following:

Base URL: https://ztpki-staging.venafi.com/<Policy ID>/pkiclient.exe

SCEP Static Challenge Password: <challenge password>

NOTE: Ensure you enter the right URL where the policy is found. US / EU / Production / Staging

Click "Connect" to get the CA capabilities. If successful, you will see a list of items in the Capabilities section under "Step 2: SCEP Server Capabilities & Certificates". The CA details will also be listed.

In "Step 3: Certificate Request Details", enter any valid name in the CN field and click "Request". If successful, you will see a popup window that says "Success". Click OK and scroll down to see the certificate details.

If a failure is seen at any time, check the Log tab for more detailed error messages.

Untitled.png



Environment


N/A TPP/TLSPDC

Actions
  • Print
  • Copy Link

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