こんにちは。
今年の梅雨は、雨が少ない予感。
ゴルフの時だけは、降らないで欲しい😊
さて、SSL自己証明書を PowerShellで作る。
$selfFriendlyName= "2026-xxxx.com"
$selfdomain= "xxxx.com"
$newCert = New-SelfSignedCertificate `
-CertStoreLocation "Cert:\LocalMachine\My" `
-Type SSLServerAuthentication -KeyUsage DigitalSignature,KeyEncipherment `
-KeyLength 2048 -KeyAlgorithm RSA -HashAlgorithm "SHA256" `
-FriendlyName $selfFriendlyName -KeyExportPolicy Exportable `
-Provider "Microsoft Software Key Storage Provider" `
-NotAfter (Get-Date).AddYears(1) -DnsName $selfdomain `
-TextExtension @(
"2.5.29.37={text}1.3.6.1.5.5.7.3.1,1.3.6.1.5.5.7.3.2",
"2.5.29.19={text}CA=false"
)
個人-証明書ストアに出来るのは納得。
しかしだ、
CA (中間証明書機関)ストアにも証明書が出来るのは問題がある。

中間証明書機関に作成しない方法をAIに聞いても分からない。
誰か教えてちょ。
作成後に中間ストアから削除するしかないかな。
