[root@kvm8 ~]# grep ^ssl /etc/prosody/prosody.cfg.lua -C4 allow_registration = true; -- These are the SSL/TLS-related settings. If you don't want -- to use SSL/TLS, you may comment or remove this key = "/etc/pki/tls/private/prosody.key"; certificate = "/etc/pki/tls/certs/prosody.crt"; }
[root@kvm8 ~]# grep '\-\-[[:space:]]*ssl =' /etc/prosody/prosody.cfg.lua -B7 -A3 VirtualHost "deyu.wang" enabled = true -- Remove this line to enable this host -- Assign this host a certificate for TLS, otherwise it would use the one -- set in the global section (if any). -- Note that old-style SSL on port 5223 only supports one certificate, and will always -- use the global one. -- ssl = { -- key = "certs/example.com.key"; -- certificate = "certs/example.com.crt"; -- }
[root@kvm8 ~]# /etc/init.d/prosody restart Stopping prosody: Stopped [ OK ] Starting prosody: Started [ OK ]
[root@kvm8 ~]# netstat -tlunp | grep lua tcp 0 0 0.0.0.0:5269 0.0.0.0:* LISTEN 28232/lua tcp 0 0 127.0.0.1:5347 0.0.0.0:* LISTEN 28232/lua tcp 0 0 0.0.0.0:5222 0.0.0.0:* LISTEN 28232/lua