J'essaie d'utiliser New-SelfSignedCertificate
dans PowerShell pour créer un certificat sur Windows 10, mais la commande me donne une erreur d'autorisations. J'utilise un compte administrateur.New-SelfSignedCertificate pour créer le certificat donne accès refusé
Commande:
New-SelfSignedCertificate -Type Custom -Subject "CN=Contoso Software, O=Contoso Corporation, C=US" -KeyUsage DigitalSignature -FriendlyName MyCert -CertStoreLocation "Cert:\LocalMachine\My"
Sortie:
New-SelfSignedCertificate : CertEnroll::CX509Enrollment::_CreateRequest: Access denied. 0x80090010 (-2146893808 NTE_PERM)
At line:1 char:1
+ New-SelfSignedCertificate -Type Custom -Subject "CN=Contoso Software, ..."
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-SelfSignedCertificate], Exception
+ FullyQualifiedErrorId : System.Exception,Microsoft.CertificateServices.Commands.NewSelfSignedCertificateCommand
Pouvez-vous accéder « Cert: \ LocalMachine \ Mon » emplacement, i.e.. voir la sortie de '' 'Get-item" Cert: \ LocalMachine \ My "' '' – Curios
Cela ressemble à ça. Pas d'erreur mais la sortie est juste 'Name: My' – wildabeast
Est-ce que' New-SelfSignedCertificate' quelque chose que vous avez écrit vous-même? – TheIncorrigible1