You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
284 B

  1. param (
  2. [Parameter(Mandatory = $true)]
  3. [string]$Password
  4. )
  5. $CertPassword = ConvertTo-SecureString -String "$Password" -Force -AsPlainText
  6. Import-PfxCertificate -Exportable -FilePath .\docker-self-signed.pfx -CertStoreLocation Cert:\CurrentUser\Root\ -Password $CertPassword