openssl-engine
名稱
openssl-engine - 載入和查詢引擎
語法
openssl engine [-help] [-v] [-vv] [-vvv] [-vvvv] [-c] [-t] [-tt] [-pre command] ... [-post command] ... [engine ...]
說明
此指令已棄用。應使用提供者,而非引擎。
此指令用於查詢指定 engine 的狀態和功能。引擎可以在所有其他命令列旗標之前和之後指定。只有指定的引擎會被查詢。
選項
- -help
-
顯示選項摘要。
- -v -vv -vvv -vvvv
-
提供有關每個指定引擎的資訊。第一個旗標列出所有可能的執行時間控制指令;第二個旗標新增每個指令的說明;第三個旗標新增輸入旗標,最後一個選項新增內部輸入旗標。
- -c
-
列出每個引擎的功能。
- -t
-
測試每個指定的引擎是否可用,並顯示答案。
- -tt
-
顯示任何不可用引擎的錯誤追蹤。
- -pre command
- -post command
-
引擎的命令列設定。-pre 指令在載入引擎之前提供給引擎,而 -post 指令在載入引擎之後提供給引擎。command 的格式為 cmd:val,其中 cmd 是指令,而 val 是指令的值。請參閱以下範例。
這兩個選項是累加的,因此可以在同一個指令中提供多次。
範例
要列出動態引擎可用的所有指令
$ openssl engine -t -tt -vvvv dynamic
(dynamic) Dynamic engine loading support
[ unavailable ]
SO_PATH: Specifies the path to the new ENGINE shared library
(input flags): STRING
NO_VCHECK: Specifies to continue even if version checking fails (boolean)
(input flags): NUMERIC
ID: Specifies an ENGINE id name for loading
(input flags): STRING
LIST_ADD: Whether to add a loaded ENGINE to the internal list (0=no,1=yes,2=mandatory)
(input flags): NUMERIC
DIR_LOAD: Specifies whether to load from 'DIR_ADD' directories (0=no,1=yes,2=mandatory)
(input flags): NUMERIC
DIR_ADD: Adds a directory from which ENGINEs can be loaded
(input flags): STRING
LOAD: Load up the ENGINE specified by other settings
(input flags): NO_INPUT
要列出 rsax 引擎的功能
$ openssl engine -c
(rsax) RSAX engine support
[RSA]
(dynamic) Dynamic engine loading support
環境
- OPENSSL_ENGINES
-
引擎目錄的路徑。
另請參閱
歷程
此指令在 OpenSSL 3.0 中已棄用。
版權
版權所有 2016-2020 The OpenSSL Project Authors。保留所有權利。
根據 Apache 授權條款 2.0(「授權條款」)授權。您不得使用此檔案,除非符合授權條款。您可以在原始程式碼散佈中的檔案 LICENSE 中取得一份副本,或至 https://www.openssl.org/source/license.html 取得。