Certificados no Nickserv: diferenças entre revisões
Ir para a navegação
Ir para a procura
Sem resumo de edição |
Sem resumo de edição |
||
| Linha 5: | Linha 5: | ||
Gerar o certificado SSL. | Gerar o certificado SSL. | ||
< | <syntaxhighlight lang="bash"> | ||
mkdir ~/.irssi/certs | |||
cd ~/.irssi/certs | |||
openssl req -nodes -newkey rsa:2048 -keyout nick.key -x509 -days 3650 -out nick.cer | |||
cat nick.cer nick.key > nick.pem | |||
chmod 400 * | |||
</ | </syntaxhighlight> | ||
=== Obter fingerprint === | === Obter fingerprint === | ||
| Linha 17: | Linha 17: | ||
Ver o fingerprint do certificado gerado. | Ver o fingerprint do certificado gerado. | ||
< | <syntaxhighlight lang="bash"> | ||
openssl x509 -in nick.pem -outform der | sha1sum -b | cut -d' ' -f1 | |||
</ | </syntaxhighlight> | ||
== irssi == | == irssi == | ||
<syntaxhighlight lang="text"> | |||
< | |||
/network add conadatia | /network add conadatia | ||
/server add -auto -ssl -ssl_cert ~/.irssi/certs/nick.pem -network deadbsd irc.conadatia.org 6697 | /server add -auto -ssl -ssl_cert ~/.irssi/certs/nick.pem -network deadbsd irc.conadatia.org 6697 | ||
/disconnect conadatia | /disconnect conadatia | ||
/connect conadatia | /connect conadatia | ||
</ | </syntaxhighlight> | ||
Depois de te ligares a rede e te identificares com o teu nick, correr o seguinte comando. | Depois de te ligares a rede e te identificares com o teu nick, correr o seguinte comando. | ||
< | <syntaxhighlight lang="text"> | ||
/msg nickserv cert add [resultado_do_fingerprint_acima] | /msg nickserv cert add [resultado_do_fingerprint_acima] | ||
</ | </syntaxhighlight> | ||
E na proxima vez que te ligares ja nao precisas de fazer nickserv identify. | E na proxima vez que te ligares ja nao precisas de fazer nickserv identify. | ||
== Mais informações == | == Mais informações == | ||
* https://www.oftc.net/NickServ/CertFP/ | * https://www.oftc.net/NickServ/CertFP/ | ||
[[Category:DeadBSD]] | [[Category:DeadBSD]] | ||
Edição atual desde as 21h20min de 7 de março de 2026
Certificado
Gerar
Gerar o certificado SSL.
mkdir ~/.irssi/certs
cd ~/.irssi/certs
openssl req -nodes -newkey rsa:2048 -keyout nick.key -x509 -days 3650 -out nick.cer
cat nick.cer nick.key > nick.pem
chmod 400 *
Obter fingerprint
Ver o fingerprint do certificado gerado.
openssl x509 -in nick.pem -outform der | sha1sum -b | cut -d' ' -f1
irssi
/network add conadatia
/server add -auto -ssl -ssl_cert ~/.irssi/certs/nick.pem -network deadbsd irc.conadatia.org 6697
/disconnect conadatia
/connect conadatia
Depois de te ligares a rede e te identificares com o teu nick, correr o seguinte comando.
/msg nickserv cert add [resultado_do_fingerprint_acima]
E na proxima vez que te ligares ja nao precisas de fazer nickserv identify.