OpenSSL

密碼學和 SSL/TLS 工具包

openssl-gendsa

名稱

openssl-gendsa - 從一組參數產生 DSA 私鑰

語法

openssl gendsa [-help] [-out filename] [-passout arg] [-aes128] [-aes192] [-aes256] [-aria128] [-aria192] [-aria256] [-camellia128] [-camellia192] [-camellia256] [-des] [-des3] [-idea] [-verbose] [-quiet] [-rand files] [-writerand file] [-engine id] [-provider name] [-provider-path path] [-propquery propq] [paramfile]

說明

此指令會從 DSA 參數檔案 (通常會由 openssl-dsaparam(1) 指令產生) 產生 DSA 私鑰。

選項

-help

列印使用說明訊息。

-out filename

將金鑰輸出至指定檔案。如果未指定此引數,則會使用標準輸出。

-passout arg

用於輸出檔案的密碼。請參閱 openssl-passphrase-options(1)

-aes128, -aes192, -aes256, -aria128, -aria192, -aria256, -camellia128, -camellia192, -camellia256, -des, -des3, -idea

這些選項會在輸出私鑰之前,使用指定的密碼對私鑰進行加密。系統會提示輸入密碼。如果未指定這些選項,則不會使用加密。

請注意,所有選項都必須在 paramfile 引數之前提供。

-verbose

列印正在執行的作業的額外詳細資料。

-quiet

列印正在執行的作業的較少詳細資料,這在批次指令碼和管線處理時可能會很方便。

-rand files, -writerand file

請參閱 openssl(1) 中的「亂數狀態選項」 以取得詳細資料。

-engine id

請參閱 openssl(1) 中的「引擎選項」。此選項已不建議使用。

paramfile

要使用的 DSA 參數檔案。此檔案中的參數會決定私鑰的大小。可以使用 openssl-dsaparam(1) 指令產生和檢查 DSA 參數。

-provider name
-provider-path path
-propquery propq

請參閱 openssl(1) 中的「提供者選項」provider(7)property(7)

附註

DSA 金鑰產生幾乎等同於亂數產生,因此比 RSA 金鑰產生快很多。

另請參閱

openssl(1)openssl-genpkey(1)openssl-dsaparam(1)openssl-dsa(1)openssl-genrsa(1)openssl-rsa(1)

歷程

-engine 選項已在 OpenSSL 3.0 中不建議使用。

著作權 2000-2023 The OpenSSL Project Authors。保留所有權利。

在 Apache 授權條款 2.0(「授權條款」)下授權。您不得在不遵守授權條款的情況下使用此檔案。您可以在原始程式碼散佈中的 LICENSE 檔案中取得一份副本,或在 https://www.openssl.org/source/license.html 取得。