当我尝试使用 gnutls 进行 SSL 连接通过 InspIRCd 设置 IRC 服务器时收到错误。
- Ubuntu Server 11.10(内核 3.0.0-14-server)
- InspIRCd-1.1.22+Azeitao r0
日志档案;
==> /var/log/inspircd.log <==
Fri Jan 13 12:03:44 2012: Done reading configuration file.
Fri Jan 13 12:03:44 2012: Unable to load /usr/lib/inspircd/modules/m_ssl_gnutls.so: /usr/lib/inspircd/modules/m_ssl_gnutls.so: undefined symbol: gnutls_x509_crt_get_issuer_dn
Fri Jan 13 12:03:44 2012: There was an error loading the module 'm_ssl_gnutls.so': Loader/Linker error: /usr/lib/inspircd/modules/m_ssl_gnutls.so: undefined symbol: gnutls_x509_crt_get_issuer_dn
系统当前存在的 gnutls 包;
dpkg --get-selections | grep gnutls
gnutls-bin install
libcurl3-gnutls install
libgnutls-dev install
libgnutls26 install
libgnutlsxx26 install
libneon27-gnutls install
inspircd.conf 摘录
<module name="m_ssl_gnutls.so">
<bind address="192.168.1.2" port="6697" type="clients" ssl="gnutls">
<ssl_cert name="cert1" certfile="/etc/ssl/certs/server.cer" keyfile="/etc/ssl/private/server.key">
答案1
对我有用。
也许你的语法有误?
<bind address="10.0.0.10" port="6667" type="clients" ssl="gnutls">
<module name="m_ssl_gnutls.so">
<gnutls cafile="" crlfile="" certfile="/etc/inspircd/ssl.cert" keyfile="/etc/inspircd/ssl.key" dh_bits="2048">
另外,请确保你删除了包装 SSL 密钥文件的密码(以便它可以启动)
看:
Archive: http://85.13.254.50/index.php
New Incomplete Docs: https://github.com/inspircd/wiki/wiki/_pages
答案2
InspIRCd 的 apt 软件包严重过时,并且充满了像您遇到的这样的错误。建议您从 tarball 版本安装 InspIRCd。最新的 tarball 版本可以从以下位置下载https://github.com/danieldg/inspircd/zipball/v2.0.5
如果您有任何问题,请随时访问 irc.chatspike.net #inspircd 并与开发人员聊天。