Troubleshooting PKINIT: KDC_ERR_PADATA_TYPE_NOSUPP

In my AS2Go lab, Rubeus reached the certificate-based Kerberos ticket request but returned KDC_ERR_PADATA_TYPE_NOSUPP. The Domain Controller’s Kerberos Authentication certificate had expired. Here’s how I narrowed the failure down to the responding KDC and what to verify after enrolling a replacement.

What the error means

PKINIT is the public-key extension used for Kerberos initial authentication. In the AS2Go ESC1 attack, Rubeus uses the certificate and its private key from the PFX to request a TGT. This was where the lab run stopped: although the ESC1 certificate had been issued successfully, the Domain Controller’s Kerberos Authentication certificate had expired. Consequently, the KDC could not process the PKINIT pre-authentication data and returned KDC_ERR_PADATA_TYPE_NOSUPP. RFC 4556

[*] Action: Ask TGT
[*] Using PKINIT with etype aes256_cts_hmac_sha1
[X] KRB-ERROR (16) : KDC_ERR_PADATA_TYPE_NOSUPP

Error 16 (0x10) means that the responding KDC could not process the requested pre-authentication type. Microsoft identifies a missing or unsuitable Domain Controller certificate as one possible cause. Start with the Domain Controller that actually answered the request. If another DC has a valid certificate, checking that DC can produce a misleading result. Microsoft’s Kerberos failure-code reference

Check KDC events

On the DC that handled the request, run this PowerShell query. It looks at the last hour of the System log. Adjust the time window to match the failed request.

PowerShell
Get-WinEvent -FilterHashtable @{
LogName = 'System'
ProviderName = 'Microsoft-Windows-Kerberos-Key-Distribution-Center'
Id = 19, 29, 32
StartTime = (Get-Date).AddHours(-1)
} |
Select-Object TimeCreated, Id, Message |
Format-List
  • 19 — The KDC could not use PKINIT because it lacked a suitable certificate.
  • 29 — The KDC could not find a suitable certificate for smart card logon, or it could not verify the certificate.
  • 32 — Check the event text for a KDC certificate missing the KDC Authentication EKU.

In my lab, events 19 and 29 pointed to the KDC certificate. Compare their timestamps with the failed request. Microsoft’s KDC event troubleshooting guidance

Inspect the DC certificate

Check the Local Computer personal certificate store on the same DC. This query lists certificates with the explicit KDC Authentication extended key usage (EKU), OID 1.3.6.1.5.2.3.5.

PowerShell
$kdcEku = '1.3.6.1.5.2.3.5'
$fields = 'Subject', 'NotBefore', 'NotAfter',
'HasPrivateKey', 'Thumbprint'
Get-ChildItem Cert:\LocalMachine\My |
Where-Object {
$_.EnhancedKeyUsageList.ObjectId -contains $kdcEku
} |
Select-Object -Property $fields |
Format-List

Compare NotBefore and NotAfter with the time of the failure, check HasPrivateKey, and record the thumbprint. The certificate in my lab was past NotAfter. The template defines how the CA issues certificates. The validity dates belong to the issued certificate.

If the filtered query is empty or you need to inspect the issuer, Subject Alternative Name, and template details, list the full store with certutil. Microsoft’s certutil reference

PowerShell
certutil.exe -v -store My

A certificate with the right EKU and a private key is a candidate. If it looks current and PKINIT still fails, check whether the certificate chain is trusted and whether revocation information is reachable.

Enroll a replacement

For an Enterprise AD CS deployment, open the Local Computer certificate console on the affected DC.

PowerShell
certlm.msc

Under Personal → Certificates, choose All Tasks → Request New Certificate. Select Active Directory Enrollment Policy, choose the approved Kerberos Authentication template, and enroll.

If the template is missing from the enrollment wizard, check that the Enterprise CA publishes it and that the intended DCs have Read and Enroll permissions on it. Keep existing DC certificates in place until you know which services use them. Microsoft’s domain controller certificate deployment guide

Validate and prevent recurrence

  1. Run the certificate check again. Confirm the replacement’s validity dates, EKU, private-key association, and thumbprint.
  2. Repeat the original PKINIT request against the same DC in your authorized lab. Confirm that the client receives a TGT.
  3. Check the DC’s System log for fresh events 19 or 29 after that attempt. Older entries remain in the log.

To prevent a repeat, apply a GPO to the domain controllers. Under Computer Configuration → Policies → Windows Settings → Security Settings → Public Key Policies, enable Certificate Services Client – Auto-Enrollment. Enable renewal of expired certificates and updates for certificates that use templates. Verify that the CA publishes the template and that the DCs also have Autoenroll permission. Microsoft’s auto-enrollment steps

Leave a Reply