本文共 1525 字,大约阅读时间需要 5 分钟。
? Linux CentOS 7 32 ?????? OpenSSL????????????
?????
??????? EPEL ???yum install epel
?? OpenSSL
?? EPEL ???? OpenSSL?yum install openssl
????
?? OpenSSL ???openssl version
?????
OpenSSL 1.0.1e-fips 17 Nov 2016built on: Fri Nov 18 16:28:23 CST 2016platform: linux-x86_64
openssl genrsa -aes128 -out fd.key 2048
?? 2048 ?? RSA ????? AES-128 ???
openssl rsa -in fd.key -pubout -out fd-public.key
??? fd.key ????? fd-public.key?
openssl req -new -key fd.key -out fd.csr
?? fd.key ?????????? fd.csr?
openssl x509 -req -days 365 -in fd.csr -signkey fd.key -out fd.crt
?? CSR ?? fd.csr ??????? fd.crt?
openssl genrsa -out ca.key 2048
openssl req -new -key ca.key -out ca.csr
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
?????????
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
ls /usr/lib64/libssl.so.1.1
yum install openssl
mkdir -p /usr/lib64cp /usr/lib64/libssl.so.1.1 /usr/lib64
????????? The mandatory stateOrProvinceName field was missing???? OpenSSL ???????????
openssl.cnf -edit -key fd.key -out fd.crt
???????????? stateOrProvinceName ???
OpenSSL ??????????kits?? Linux ?????? SSL/TLS ????????????? OpenSSL ? CentOS 7 32 ???????????????????????????
转载地址:http://djpfk.baihongyu.com/