summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-05-08 08:11:28 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-05-11 21:07:11 +0200
commit49844a71f0cca3ec36597725f9d14ddf514b88b0 (patch)
tree2813e8ea53b5bad8b37a6ba061ef146c77258c23 /doc/en
parent5210d501d4052ea55138539efb1f23885376ae05 (diff)
downloadweechat-49844a71f0cca3ec36597725f9d14ddf514b88b0.zip
doc: use XDG config directory in SASL ECDSA-NIST256P-CHALLENGE chapter (user's guide) (issue #1285)
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_user.en.adoc8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc
index 025c5853b..ec8bf99db 100644
--- a/doc/en/weechat_user.en.adoc
+++ b/doc/en/weechat_user.en.adoc
@@ -2913,13 +2913,17 @@ ECDSA-NIST256P-CHALLENGE mechanism (no password is required on connection).
You can generate the key with this command:
----
-$ openssl ecparam -genkey -name prime256v1 -out ~/.weechat/ecdsa.pem
+$ openssl ecparam -genkey -name prime256v1 -out ~/.config/weechat/ecdsa.pem
----
+[NOTE]
+You must replace `~/.config/weechat` by the path to your WeeChat config directory
+which can also be for example `~/.weechat`.
+
Get the public key (encoded as base64) with this command:
----
-$ openssl ec -noout -text -conv_form compressed -in ~/.weechat/ecdsa.pem | grep '^pub:' -A 3 | tail -n 3 | tr -d ' \n:' | xxd -r -p | base64
+$ openssl ec -noout -text -conv_form compressed -in ~/.config/weechat/ecdsa.pem | grep '^pub:' -A 3 | tail -n 3 | tr -d ' \n:' | xxd -r -p | base64
----
Connect to the server, identify (for example with "nickserv identify") and set