「マイクロソフト系技術情報 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
自己署名証明書は、随分、簡単になった。
以下を参照
>openssl req -out testsite.csr -key server.key -new You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:jp State or Province Name (full name) [Some-State]:hoge Locality Name (eg, city) []:hoge Organization Name (eg, company) [Internet Widgits Pty Ltd]:open Organizational Unit Name (eg, section) []:touryo Common Name (e.g. server FQDN or YOUR name) []:(FQDN名) Email Address []: Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []:
Active Directory の 証明書サービス (AD CS)を使用する。
証明書サービス (AD CS)はサーバOSのみなので、
クライアントOSの場合は、OpenSSLを利用する。
>openssl genrsa -des3 -out server.key 1024 Generating RSA private key, 1024 bit long modulus (2 primes) .................................+++++ ..................+++++ e is 65537 (0x010001) Enter pass phrase for server.key:(任意のパスフレーズ) Verifying - Enter pass phrase for server.key:(任意のパスフレーズ)
>openssl rsa -in server.key -out server.key Enter pass phrase for server.key:(任意のパスフレーズ) writing RSA key
>openssl x509 -in testsite.txt -out testsite.crt -req -signkey server.key -days 3650 Signature ok subject=C = JP, ST = hoge, L = hoge, O = hoge, OU = hoge, CN = FQDN名 Getting Private key
>openssl pkcs12 -export -in testsite.crt -inkey server.key -out testsite.pkcs12 Enter Export Password:(IISで完了するには空白に設定) Verifying - Enter Export Password:(IISで完了するには空白に設定)
subjectAltName = DNS:(FQDN名)
>openssl x509 -in testsite.txt -out testsite.crt -req -signkey server.key -days 3650 -extfile san.txt Signature ok subject=C = JP, ST = hoge, L = hoge, O = hoge, OU = hoge, CN = FQDN名 Getting Private key