From 2cf3edd27b2471617fd05e610d2749042c8b81d7 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 11 Apr 2024 18:19:32 +0200 Subject: [PATCH] Explain CN --- docs/cheatsheet.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/cheatsheet.md b/docs/cheatsheet.md index 1ef20d0..ec9f63f 100644 --- a/docs/cheatsheet.md +++ b/docs/cheatsheet.md @@ -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. -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 \ -keyout certs/xmpp.key -out certs/xmpp.pem \ - -subj "/CN=example.com" + -subj "/CN=localhost" Print content of a TLS certificate: @@ -35,4 +36,4 @@ Connecting: Password should be the same as in storage. Example: - /connect -nocap 127.0.0.1 6667 parolchik1 kek \ No newline at end of file + /connect -nocap 127.0.0.1 6667 parolchik1 kek