forked from lavina/lavina
Explain CN
This commit is contained in:
parent
37c5b6a324
commit
cb03d0f409
|
@ -8,11 +8,12 @@ Some useful commands for development and testing.
|
||||||
|
|
||||||
Following commands require `OpenSSL` to be installed. It is provided as `openssl` package in Arch Linux.
|
Following commands require `OpenSSL` to be installed. It is provided as `openssl` package in Arch Linux.
|
||||||
|
|
||||||
Generate self-signed TLS certificate:
|
Generate self-signed TLS certificate. Mind the common name (CN) field, it should match the domain name of the server.
|
||||||
|
Example for localhost:
|
||||||
|
|
||||||
openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -noenc \
|
openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -noenc \
|
||||||
-keyout certs/xmpp.key -out certs/xmpp.pem \
|
-keyout certs/xmpp.key -out certs/xmpp.pem \
|
||||||
-subj "/CN=example.com"
|
-subj "/CN=localhost"
|
||||||
|
|
||||||
Print content of a TLS certificate:
|
Print content of a TLS certificate:
|
||||||
|
|
||||||
|
@ -35,4 +36,4 @@ Connecting:
|
||||||
Password should be the same as in storage.
|
Password should be the same as in storage.
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
/connect -nocap 127.0.0.1 6667 parolchik1 kek
|
/connect -nocap 127.0.0.1 6667 parolchik1 kek
|
||||||
|
|
Loading…
Reference in New Issue