From 5705f3b5f826ef975ef934a4230a5713ca813f76 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Mon, 19 Jan 2015 14:44:54 +0200 Subject: [PATCH] identifying_to_services.rst: remove ecdsatool Thanks to @FlashCode for finding the method for getting public key without having to install ecdsatool just for it. --- use/identifying_to_services.rst | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/use/identifying_to_services.rst b/use/identifying_to_services.rst index a59bcdc..4f3a5de 100644 --- a/use/identifying_to_services.rst +++ b/use/identifying_to_services.rst @@ -93,23 +93,21 @@ First you must ECDSA key for the bot to use:: and get the public key using:: - ecdsatool pubkey _ecdsa.pem + openssl ec -noout -text -conv_form compressed -in _ecdsa.pem | grep '^pub:' -A 3 | tail -n 3 | tr -d ' \n:' | xxd -r -p | base64 -**NOTE!** You might need to compile ecdsatool from source. There is also -issue of Limnoria not working with ecdsatool generated keys. For more -information about that, see - -* Source for ecdsatool: https://github.com/atheme/ecdsatool -* Bug report about ecdatool keys not working https://github.com/atheme/ecdsatool/issues/5 -* Limnoria issue on the subject: https://github.com/ProgVal/Limnoria/issues/990 - -After generating the key, you must tell your bot to use it and tell +After getting the public key, you must tell your bot to use it and tell services about it (just like with CertFP/SASL EXTERNAL):: config supybot.networks..sasl.username AccountName config supybot.networks..sasl.ecdsa_key /home//_ecdsa.pem - ircquote nickserv set pubkey PUBKEY_WHICH_YOU_GOT_WITH_ECDSATOOL_EARLIER -and after reconnecting, the bot should successfully identify using SASL ECDSA-NIST256P-CHALLENGE. + ircquote nickserv set pubkey PUBKEY_WHICH_YOU_GOT_EARLIER + +and after reconnecting, the bot should successfully identify using SASL +ECDSA-NIST256P-CHALLENGE. + +*NOTE:* You can use ``ecdsa pubkey`` to get the public key, but you cannot +generate the key pair using it as pyecdsa doesn't support ecdsatool +generated keys. Server password ---------------