生成ssl数字证书:
#openssl req -new -days 365 -x509 -key /usr/local/ircd/etc/rsa.key -out /usr/local/ircd/etc/cert.pem
/usr/local/ircd/etc/cert.pem
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:CN
State or Province Name (full name) [Some-State]:MIS
Locality Name (eg, city) []:BeJing
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Jian
Organizational Unit Name (eg, section) []:irc.test.com
Common Name (eg, YOUR name) []:irc.test.com
Email Address []:jian@test.com
#chown -R ircadmin.ircadmin /usr/local/ircd/
修改配置文件:
vi /usr/local/ircd/etc/ircd.conf
我就对配置文件关键设置做下简单说明:
#44行修改如下:
serverinfo {
name = "ircd"; #你服务器名称
sid = "1ST"; #必须按提示说明设置3个安符,其中第一个必须是数字1-9,后两个必须是字母组合,否则ircd服务不能正常启动。
network_name = "MyNet"; #网络信息
network_desc = "This is My Network"; #网络信息描述
max_clients = 512;
};
#177行修改为如下:
listen {
flags = ssl; #设置为ssl加密
port = 7000; #服务端口
};
#282行可修改为如下:
auth {
user = "*@*"; #用户@主机允许连接