Use this when finding a user or computer certificate with private key.
Personal Store
The Personal store holds certificates that have a private key for the user or computer, such as client authentication, server TLS or code signing certificates.
1. Personal (My) store holds certs with private keys.
2. HasPrivateKey true?
3. Key export policy.
4. Import PFX: Import-PfxCertificate.
5. Bind to service.
certificate + private key in My store
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-ChildItem Cert:\CurrentUser\MyVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Certificates imported without the private key.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Certificates in Personal normally have a private key.
- A non-exportable key cannot be moved to another machine.
Get-ChildItem Cert:\LocalMachine\My— machine personal certificatesGet-ChildItem Cert:\CurrentUser\My— user personal certificatescertutil -verify -urlfetch <file.cer>— chain and revocation checkTest-Certificate -Cert <cert> -Policy SSL -DNSName <name>— validate for a name
ReferenceWhy it matters1 section · depth on demand
Personal store
Get-ChildItem Cert:\CurrentUser\My
Get-ChildItem Cert:\LocalMachine\My | Select Subject,NotAfter,HasPrivateKey,Thumbprint
certlm.msc # computer store GUI
certmgr.msc # user store GUI
A certificate without HasPrivateKey cannot be used for TLS or client authentication. Export with private key only when necessary (Export-PfxCertificate with a strong password). Monitor NotAfter to avoid expiry outages.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
The Personal store holds certificates with private keys for the computer, user or service.
$pwd = Read-Host -AsSecureString
Export-PfxCertificate -Cert Cert:\LocalMachine\My\<thumb> -FilePath C:\Secure\srv01.pfx -Password $pwd
Import-PfxCertificate -FilePath C:\Secure\srv01.pfx -CertStoreLocation Cert:\LocalMachine\My -Password $pwd
certutil -repairstore My <serial> # relink private key
Mark keys non-exportable unless needed, protect PFX files like passwords, and track expiry centrally — expired certificates are a top cause of avoidable outages.
ReferenceConfiguration & state1 section · depth on demand
Commands
Get-ChildItem Cert:\CurrentUser\My
Get-ChildItem Cert:\LocalMachine\My | Select Subject,NotAfter,Thumbprint,HasPrivateKey
certutil -user -store My
Export-PfxCertificate -Cert Cert:\LocalMachine\My\<thumbprint> -FilePath c.pfx -Password (Read-Host -AsSecureString)
Documented example, not captured output. Services use LocalMachine\My; user certificates (S/MIME, client auth) use CurrentUser\My.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Certificates → Personal Store. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/ · confidence 94%