PSPKI
PSPKI copied to clipboard
Revocation Syntax for Request ID
I need to revoke certs based on the Request ID. I've scoured the interwebs and have not had any luck.
Can someone please provide an example?
Thanks
Have you looked Revoke-Certificate command examples: https://www.pkisolutions.com/tools/pspki/Revoke-Certificate?
Yes. I referenced that before submitting the ticket. I want to filter on Request ID.
Mark R. Sigsbee, CISSP
[cid:c8e17d94-2789-4d90-8531-0dccd7e98acd]https://www.linkedin.com/in/mark-sigsbee/
SUNet PKI Support Team
@.@.>
(301)509-7592 (cell)
[cid:03d8d51e-8174-47fd-829a-e74fe472db19]
From: Vadims Podans @.> Sent: Thursday, June 13, 2024 9:07 AM To: PKISolutions/PSPKI @.> Cc: Mark Sigsbee @.>; Author @.> Subject: Re: [PKISolutions/PSPKI] Revocation Syntax for Request ID (Issue #217)
Have you looked Revoke-Certificate command examples: https://www.pkisolutions.com/tools/pspki/Revoke-Certificate?
— Reply to this email directly, view it on GitHubhttps://github.com/PKISolutions/PSPKI/issues/217#issuecomment-2165618267, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJHY7I7ABNKK5L3IYRB6NY3ZHGKP3AVCNFSM6AAAAABJIGZBNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRVGYYTQMRWG4. You are receiving this because you authored the thread.Message ID: @.***>
Look at the last example. Just replace Get-RevokedCertificate with Get-IssuedCertificate, for example:
Get-CertificationAuthority MyCA | Get-IssuedRequest -ID 17 | Revoke-Certificate -Reason "KeyCompromise"
Nothing happens with this syntax. Powershell comes back with a prompt immediately. No error messages and cert status never changes.
Mark R. Sigsbee, CISSP
[cid:ac62bff1-56e5-44e8-8e26-39d4da418860]https://www.linkedin.com/in/mark-sigsbee/
SUNet PKI Support Team
@.@.>
(301)509-7592 (cell)
[cid:b685f415-c067-4b63-b06e-1eb7fe936a37]
From: Vadims Podans @.> Sent: Thursday, June 13, 2024 1:13 PM To: PKISolutions/PSPKI @.> Cc: Mark Sigsbee @.>; Author @.> Subject: Re: [PKISolutions/PSPKI] Revocation Syntax for Request ID (Issue #217)
Look at the last example. Just replace Get-RevokedCertificate with Get-IssuedCertificate, for example:
Get-CertificationAuthority MyCA | Get-IssuedRequest -ID 17 | Revoke-Certificate -Reason "KeyCompromise"
— Reply to this email directly, view it on GitHubhttps://github.com/PKISolutions/PSPKI/issues/217#issuecomment-2166353633, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJHY7I46M3QINVUXHZKACODZHHHL7AVCNFSM6AAAAABJIGZBNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRWGM2TGNRTGM. You are receiving this because you authored the thread.Message ID: @.***>
Then your command has incorrect parameters.
Attached is a screen shot of my command. Sadly I live in the air-gapped world so I have no capabilities to copy down files.
And what your text file content look like?
Resolved the issue. I had to use FQDN in replacement of "MyCA".