免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4116 | 回复: 0
打印 上一主题 下一主题

[FTP] 请教一个使用ftp ssl/tls的问题 谢谢 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-15 22:01 |只看该作者 |倒序浏览
我在客户端上使用
./configure CC=gcc CFLAGS='-O3' --prefix=/home/kkk/lftp --without-gnutls --with-openssl安装支持ssl/tls协议的lftp

服务器上使用
./configure CC=gcc CFLAGS='-O3' --prefix=/home/kkk/proftpd --enable-autoshadow --enable-ctrls --with-modules=mod_tls安装proftpd

并且proftpd.conf中有关tls/ssl的配置如下:

<IfModule mod_tls.c>
    TLSEngine on
    TLSLog /var/log/proftpd-tls.log
    TLSProtocol TLSv1
    #TLSProtocol SSLv23

    # Are clients required to use FTP over TLS when talking to this server?
    TLSRequired off

    # Server's certificate
    TLSRSACertificateFile /etc/tls/private/server.cert.pem
    TLSRSACertificateKeyFile /etc/tls/private/server.key.pem

    # CA the server trusts
    #TLSCACertificateFile /etc/pki/tls/proftpd/root.cert.pem

    # Authenticate clients that want to use FTP over TLS?
    TLSVerifyClient off

    # Allow SSL/TLS renegotiations when the client requests them, but
    # do not force the renegotations.  Some clients do not support
    # SSL/TLS renegotiations; when mod_tls forces a renegotiation, these
    # clients will close the data connection, or there will be a timeout
    # on an idle data connection.
    TLSRenegotiate required off

</IfModule>


现在使用lftp想访问proftpd  随便运行一个ls命令 提示出错:

<--- 220 ProFTPD 1.3.1 Server (ProFTPD)
---> FEAT
<--- 211-Features:
MDTM
AUTH TLS
PBSZ
PROT
REST STREAM
SIZE
<--- 211 End                  
---> AUTH TLS
<--- 234 AUTH TLS successful
---> USER ftp
**** SSL_connect: unknown protocol
---- Closing control socket
ls: Fatal error: SSL_connect: unknown protocol

服务器端proftpd日志如下
May 15 21:42:36 mod_tls/2.1.2[25070]: using default OpenSSL verification locations (see $SSL_CERT_DIR environment variable)
May 15 21:42:36 mod_tls/2.1.2[25070]: TLS/TLS-C requested, starting TLS handshake
May 15 21:42:36 mod_tls/2.1.2[25070]: unable to accept TLS connection:
  (1) error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
May 15 21:42:36 mod_tls/2.1.2[25070]: TLS/TLS-C negotiation failed on control channel

请问这是什么原因呢 怎么解决 谢谢

[ 本帖最后由 linuxsmth 于 2008-5-15 22:56 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP