LoginSignup
0
0

PowerShellのヒアドキュメント経由で証明書ストアに証明書を登録する

Last updated at Posted at 2024-01-22

ローカルコンピューターの「信頼されたルート証明機関」証明書ストアに証明書を登録した際の備忘録です。

$TempFile = New-TemporaryFile

$content = @'
-----BEGIN CERTIFICATE-----
ここを証明書の中身で置き換える
-----END CERTIFICATE-----
'@

$content | Out-File $TempFile

Import-Certificate -FilePath $TempFile -CertStoreLocation 'Cert:\LocalMachine\Root'
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0