本文共 1885 字,大约阅读时间需要 6 分钟。
OpenSSL???????????????????SSL/TLS??????????????????????DES?3DES?AES?????????????????????
libcrypto
libcrypto?OpenSSL???????????????????libssl
libssl?OpenSSL?SSL/TLS?????SSL??????????SSLv2?SSLv3?TLSv1?TLSv1.1?TLSv1.2??openssl??
openssl??????????????????????openssl enc -e -des3 -a -salt -in filename -out filename.encryptionopenssl enc -d -des3 -a -salt -in testfile.encryption -out testfileopenssl rand -base64 10LMAeXPhRn3m3pg==openssl rand -hex 10openssl dhparam -o out/dhparam.pem -pbits 2048
openssl genrsa -out private.key -bits 2048openssl rsa -in private.key -pubout -out public.key
openssl req -key private.key -out certificate.req
# ??openssl x509 -req -sha256 -in certificate.req -out signed_cert.pem -sign private.key# ??openssl x509 -verify -signature file
# ??MD5??md5sum file# ??MD5?????hex???openssl dgst -md5 file
# ??????openssl rand -hex 10# ??Base64????????openssl rand -base64 10
# ??SSL???openssl rand -entropy 16
?????????????OpenSSL??????????????????????????????????OpenSSL?????????????
转载地址:http://hcpfk.baihongyu.com/