I am trying to renew a certificate using CertEnroll and CertLib COM libraries in PowerShell. Here is my code: [CmdletBinding()] param( [parameter (mandatory=$true)] [string]$ServerName ) $credential = Get-Credential Invoke-Command -ComputerName $ServerName -Credential $credential -ScriptBlock{ $location=[System.Security.Cryptography.X509Certificates.StoreLocation]::CurrentUser $store =New-Object -TypeName System.Security.Cryptography.X509Certificates.X509Store -ArgumentList $location $store.Open(1) $cert = $store.Certificates.Find([System.Security.Cryptography.X509Certificates.X509FindType]::FindByIssuerName,"<CA-Name>",$false)[0] #Write-Output $cert.IssuerName $store.Close() $request = [...] read more
i am trying to update the certification revocation list on a root server and want to update it on an issuing CA server. But i am facing a strange problem as below - 1. when i am trying to publish the .crl on the issuing CA using the following command [...] read more