鍵のエクスポート
openssl pkcs12 -export -in newcert.pem -inkey newreq.pem -out newcert.p12
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
.pfx を pem 形式に変換
openssl pkcs12 -clcerts -in tamo@docoka.or.jp.pfx -out mycert.pem
pem 形式を .pfx に変換 (*鍵のエクスポート?) 2004.5.3
openssl pkcs12 -exports -in mycert.pem -out mycert.pfx
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
署名
openssl smime -sign -signer mycert.pem -inkey mycert
.pem -in readme.txt -subject test -to tamo@docoka.or.jp -from tamo@docoka.or.jp > smime.s7m
暗号
openssl smime -encrypt -rc2-40 -subject test -to tamori.tarou@xxxx.co.jp -from tamo@docoka.or.jp -in readme.txt -in readme2.txt mypub.pem
復号
openssl smime -decrypt -recip mycert.pem -inkey mycert.pem -in smime.p7m
証明書から公開鍵を取り出す
openssl x509 -in cert-mine.pem -pubkey -noout
openssl x509 -in cert-mine.pem -pubkey
証明書から公開鍵を取り出す2
Internet Exploererから公開鍵をエクスポートするときにbase64 cer形式で出力する
openssl x509 -in xxx@xxxx.co.jp.cer -pubkey