To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Cert: Difference between revisions

From ZNC
Jump to navigation Jump to search
Created page with "{{Core Module}} This module let's users use their own ssl certificate to connect to a server, such as [http://www.oftc.net/oftc/NickServ/CertFP CertFP]. You can will need t..."
 
>Morrolan
m Fixed typos, added <code> tags.
Line 1: Line 1:
{{Core Module}}
{{Core Module}}


This module let's users use their own ssl certificate to connect to a server, such as [http://www.oftc.net/oftc/NickServ/CertFP CertFP].  
This module lets users use their own SSL certificate to connect to a server, such as [http://www.oftc.net/oftc/NickServ/CertFP CertFP].  


You can will need to generate a ssl certificate to use with this module and either place it at `~/.znc/users/<user>/moddata/cert/user.pem` or use the web admin to upload the certificate.
You will have to generate a SS certificate to use with this module and either place it at `~/.znc/users/<user>/moddata/cert/user.pem` or use the web admin to upload the certificate.


{{Module arguments}}
{{Module arguments}}
Line 20: Line 20:


You can use the following openssl commands to generate a certificate  
You can use the following openssl commands to generate a certificate  
  openssl req -nodes -newkey rsa:2048 -keyout znc.key -x509 -days 365 -out znc.crt
  <code>openssl req -nodes -newkey rsa:2048 -keyout znc.key -x509 -days 365 -out znc.crt
  cat znc.crt znc.key > znc.pem
  cat znc.crt znc.key > znc.pem</code>


This command would produce a 2048-bit certificate which would expire in 356 days. You can modify the arguments to openssl to change this. znc.pem is the certificate you will need to add to ZNC.
This command would produce a 2048-bit certificate which would expire in 356 days. You can modify the arguments to openssl to change this. znc.pem is the certificate you will need to add to ZNC.

Revision as of 11:41, 14 September 2012


This module lets users use their own SSL certificate to connect to a server, such as CertFP.

You will have to generate a SS certificate to use with this module and either place it at `~/.znc/users/<user>/moddata/cert/user.pem` or use the web admin to upload the certificate.

Arguments

This user module takes no arguments.

Read loading modules to learn more about loading modules.

Commands

+---------+-----------+--------------------------------+
| Command | Arguments | Description                    |
+---------+-----------+--------------------------------+
| Help    |           | Generate this output           |
| delete  |           | Delete the current certificate |
| info    |           |                                |
+---------+-----------+--------------------------------+

Generating a certificate

You can use the following openssl commands to generate a certificate

openssl req -nodes -newkey rsa:2048 -keyout znc.key -x509 -days 365 -out znc.crt
cat znc.crt znc.key > znc.pem

This command would produce a 2048-bit certificate which would expire in 356 days. You can modify the arguments to openssl to change this. znc.pem is the certificate you will need to add to ZNC.