openssl+vsftpd 加密验证方式

[root@localhost ~]# rpm -q openssl
openssl-1.0.1e-48.el6.x86_64
[root@localhost ~]# ldd /usr/sbin/vsftpd | grep libssl
libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007fd4fb52e000)

 

[root@localhost ~]# cd /etc/ssl/certs/
[root@localhost certs]# openssl genrsa -out vsftp.key 1024
Generating RSA private key, 1024 bit long modulus
...................++++++
..++++++
e is 65537 (0x10001)

[root@localhost certs]# openssl req -new -key vsftp.key -out vsftp.csr

[root@localhost certs]# openssl x509 -req -days 365 -sha256 -in vsftp.csr -signkey vsftp.key -out vsftp.crt

[root@localhost certs]# service vsftpd restart

posted @ 2019-11-11 17:08  星火撩原  阅读(257)  评论(0编辑  收藏  举报