1 2 3 4 5 6 7 |
New-SelfSignedCertificate -DnsName "NombreDeTuDominio.com" -CertStoreLocation "Cert:\CurrentUser\My" $cert = Get-ChildItem -Path "Cert:\CurrentUser\My" | where {$_.Subject -match "NombreDeTuDominio.com"} $cert.Thumbprint $pwd = ConvertTo-SecureString -String "TuContraseña" -Force -AsPlainText Export-PfxCertificate -Cert $cert -FilePath "C:\Ruta\De\Tu\Certificado.pfx" -Password $pwd |