This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to delete a SSL certificate using certutil
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2017
08:55 AM
How to delete a SSL certificate using certutil
Hello Friends,
I need to delete a SSL certificate from Personal & Trusted root certificate store. How can i do this.
I have only CN (Common name) of the certificate, i cant use Thumbprint as i dont have it.
with "certutil -delstore" command how can i achieve this?
Can someone provide a code snippet example.
Thanks. Its urgent please help me.
I need to delete a SSL certificate from Personal & Trusted root certificate store. How can i do this.
I have only CN (Common name) of the certificate, i cant use Thumbprint as i dont have it.
with "certutil -delstore" command how can i achieve this?
Can someone provide a code snippet example.
Thanks. Its urgent please help me.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2017
09:40 AM
Hi there,
Are you really limited to CERTURIL?
PowerShell can do great things, eg finding the Thumbprint with the CN:
Get-ChildItem -path cert: -Recurse | where { $_.Subject -like "CN=*" } | Select Thumbprint
OR:
See this MS doc:
Get-ChildItem -Path cert:\LocalMachine -DnsName *Fabrikam* | Remove-Item
Description
-----------
This command deletes all certificates that have a DNS name that contains "Fabrikam". It uses the DNSName parameter of the Get-ChildItem cmdlet to get the certificates and the Remove-Item cmdlet to delete them.
Kind regards,
Marc
Are you really limited to CERTURIL?
PowerShell can do great things, eg finding the Thumbprint with the CN:
Get-ChildItem -path cert: -Recurse | where { $_.Subject -like "CN=
OR:
See this MS doc:
Get-ChildItem -Path cert:\LocalMachine -DnsName *Fabrikam* | Remove-Item
Description
-----------
This command deletes all certificates that have a DNS name that contains "Fabrikam". It uses the DNSName parameter of the Get-ChildItem cmdlet to get the certificates and the Remove-Item cmdlet to delete them.
Kind regards,
Marc
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2017
10:05 AM
Hi there,
Are you really limited to CERTUTIL? PowerShell can do great things... see:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/providers/remove-item-for-certificate?view=powershell-5.1
Are you really limited to CERTUTIL? PowerShell can do great things... see:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/providers/remove-item-for-certificate?view=powershell-5.1