easy-rsa v3:build-caとgen-reqをサイレントに実行しますか?


1

easy-rsaの新しいv3バージョンでは、コマンドラインにデータをサイレントフィードする方法が見つかりませんでした。

$ ./easyrsa build-ca nopass

Note: using Easy-RSA configuration from: ./vars
Generating a 2048 bit RSA private key
...............................................................................................................................................................+++
...............................................................................+++
writing new private key to '~/EasyRSA-3.0.4/pki/private/ca.key.Dz9CBy9xV1'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Common Name (eg: your user, host, or server name) [Easy-RSA CA]:

ファイルopenssl-easyrsa.cnfをいじってみましvarsたが、役に立ちませんでした。

Dockerコンテナエントリポイント内でこれらの操作を自動化しているため、インタラクティブな操作を行うことができません。

回答:


2

さて、easyrsaを実行する前にこれを行うのと同じくらい簡単でした:

# export EASYRSA_BATCH=1

ありがとう!ファイルで試しset_var EASYRSA_BATCH "yes"ましたvarsが、うまくいきませんでした。実行export EASYRSA_BATCH=1はトリックをしました。
ndbroadbent
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.