OpenSSL
暗号化 と SSL/TLS ツールキット
暗号化 と復号
AES-256-CBC 暗号化
openssl aes-256-cbc -in 123.txt -out encrypted_123AES-256-CBC 復号
openssl aes-256-cbc -d -in encrypted_123 -out abc.txt証明書 操作
秘密 鍵 を生成
openssl genrsa -out private.key 2048CSR を生成
openssl req -new -key private.key -out certificate.csr自己 署名 証明書 を生成
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout private.key -out certificate.crt証明書 情報 を表示
openssl x509 -in certificate.crt -text -noout証明書 と秘密 鍵 の一致 を確認
openssl x509 -noout -modulus -in certificate.crt | openssl md5
openssl rsa -noout -modulus -in private.key | openssl md5ハッシュと検証
MD5
openssl md5 filenameSHA256
openssl sha256 filename接続 テスト
SSL/TLS 接続 をテスト
openssl s_client -connect example.com:443サーバー証明書 を表示
openssl s_client -connect example.com:443 -showcerts