From 5d91765da75d6485ef64df3b9b288e71c471835b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 19 Mar 2018 15:49:25 -0700 Subject: doc: use '-out' instead of shell redirection for openssl ecparam Generated with: $ sed -i 's|openssl ecparam -genkey -name prime256v1 >~/.weechat/ecdsa.pem|openssl ecparam -genkey -name prime256v1 -out ~/.weechat/ecdsa.pem|' $(git grep -l 'openssl ecparam') There's no reason to involve shell redirection, which we've had since 88073243 (doc: add instructions for SASL "ecdsa-nist256p-challenge", 2015-01-21). We already use -in or -out for our other openssl invocations, as shown by: $ git grep 'openssl.*\(<\|>\|-in\|-out\)' --- doc/de/weechat_user.de.adoc | 2 +- doc/en/weechat_user.en.adoc | 2 +- doc/fr/weechat_user.fr.adoc | 2 +- doc/it/weechat_user.it.adoc | 2 +- doc/ja/weechat_user.ja.adoc | 2 +- doc/pl/weechat_user.pl.adoc | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/de/weechat_user.de.adoc b/doc/de/weechat_user.de.adoc index 19850b4e1..fcb5bdb52 100644 --- a/doc/de/weechat_user.de.adoc +++ b/doc/de/weechat_user.de.adoc @@ -2687,7 +2687,7 @@ dadurch kein Passwort während des Verbindungsaufbaus benötigt). Ein Schlüssel kann mit folgendem Befehl erzeugt werden: ---- -$ openssl ecparam -genkey -name prime256v1 >~/.weechat/ecdsa.pem +$ openssl ecparam -genkey -name prime256v1 -out ~/.weechat/ecdsa.pem ---- Um den öffentlichen Schlüssel zu erhalten (base64 enkodiert) muss diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc index 1c4d252ed..74b7a2a80 100644 --- a/doc/en/weechat_user.en.adoc +++ b/doc/en/weechat_user.en.adoc @@ -2629,7 +2629,7 @@ ECDSA-NIST256P-CHALLENGE mechanism (no password is required on connection). You can generate the key with this command: ---- -$ openssl ecparam -genkey -name prime256v1 >~/.weechat/ecdsa.pem +$ openssl ecparam -genkey -name prime256v1 -out ~/.weechat/ecdsa.pem ---- Get the public key (encoded as base64) with this command: diff --git a/doc/fr/weechat_user.fr.adoc b/doc/fr/weechat_user.fr.adoc index 51e63fabe..9a07c420c 100644 --- a/doc/fr/weechat_user.fr.adoc +++ b/doc/fr/weechat_user.fr.adoc @@ -2721,7 +2721,7 @@ connexion). Vous pouvez générer la clé avec cette commande : ---- -$ openssl ecparam -genkey -name prime256v1 >~/.weechat/ecdsa.pem +$ openssl ecparam -genkey -name prime256v1 -out ~/.weechat/ecdsa.pem ---- Récupérez la clé publique (encodée en base64) avec cette commande : diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc index 643bd2f9a..4e3846820 100644 --- a/doc/it/weechat_user.it.adoc +++ b/doc/it/weechat_user.it.adoc @@ -2811,7 +2811,7 @@ ECDSA-NIST256P-CHALLENGE mechanism (no password is required on connection). You can generate the key with this command: ---- -$ openssl ecparam -genkey -name prime256v1 >~/.weechat/ecdsa.pem +$ openssl ecparam -genkey -name prime256v1 -out ~/.weechat/ecdsa.pem ---- Get the public key (encoded as base64) with this command: diff --git a/doc/ja/weechat_user.ja.adoc b/doc/ja/weechat_user.ja.adoc index 056d085be..8f4f2ff69 100644 --- a/doc/ja/weechat_user.ja.adoc +++ b/doc/ja/weechat_user.ja.adoc @@ -2626,7 +2626,7 @@ ECDSA-NIST256P-CHALLENGE を使って認証を行うためには、秘密鍵を 鍵を作成するには、以下のコマンドを使ってください: ---- -$ openssl ecparam -genkey -name prime256v1 >~/.weechat/ecdsa.pem +$ openssl ecparam -genkey -name prime256v1 -out ~/.weechat/ecdsa.pem ---- 公開鍵を (base64 エンコード形式で) 作成するには、以下のコマンドを使ってください: diff --git a/doc/pl/weechat_user.pl.adoc b/doc/pl/weechat_user.pl.adoc index a55275321..8f9e20f2c 100644 --- a/doc/pl/weechat_user.pl.adoc +++ b/doc/pl/weechat_user.pl.adoc @@ -2648,7 +2648,7 @@ ECDSA-NIST256P-CHALLENGE (hasło nie potrzebne do połączenia). Klucz można wygenerować za pomocą komendy: ---- -$ openssl ecparam -genkey -name prime256v1 >~/.weechat/ecdsa.pem +$ openssl ecparam -genkey -name prime256v1 -out ~/.weechat/ecdsa.pem ---- Klucz publiczny (zakodowany za pomocą base64) uzyskujemy wywołując komendę: -- cgit v1.2.3