0
En utilisant makecert.exe
je peux prendre un fichier pvk et de générer une liste de révocation en utilisant la commande suivante:Comment générer un fichier de certificat CRL dans Powershell?
makecert.exe -CrL -n "CN = Foobar" -r -sv "Foobar.pvk" « Foobar.crl "
Quelle est la commande Powershell équivalente?
Le code suivant utilise Powershell pour générer les fichiers PVK et CER, mais je ne peux pas comprendre comment générer la liste de révocation
$rootcert = New-SelfSignedCertificate -DnsName "CN=Foobar" -CertStoreLocation cert:\LocalMachine\My
$PFXPass = ConvertTo-SecureString -String "my password" -Force -AsPlainText
Export-PfxCertificate -Cert $('cert:\LocalMachine\My\' + $rootcert.Thumbprint) -Password $PFXPass -FilePath "Foobar.pvk"
Export-Certificate -Cert $('cert:\LocalMachine\My\' + $rootcert.Thumbprint) -FilePath "Foobar.cer"
Je ne pense pas qu'il y ait cmdlets pour générer ou la signature CRLs, ma recommandation serait de continuer tout simplement en utilisant 'makecert.exe' ou essayer de trouver l'API sous-jacente et invoquer que via PowerShell –
Pourquoi vous besoin d'une commande différente? 'makecert.exe' fonctionne dans PowerShell. –