GnuTLS

出自 Arch Linux 中文维基

根據 Wikipedia:

GnuTLS (the GNU Transport Layer Security Library) is a free software implementation of the TLS, SSL and DTLS protocols. It offers an application programming interface (API) for applications to enable secure communication over the network transport layer, as well as interfaces to access X.509, PKCS #12, OpenPGP and other structures.

安裝[編輯 | 編輯原始碼]

安裝 gnutls 包。

要與 Apache HTTP Server 集成,請安裝 mod_gnutls

用法[編輯 | 編輯原始碼]

有關以下各節中使用的命令,請參見 certtool(1);有關 API 文檔,請參見信息文檔。

生成 RSA 私鑰[編輯 | 編輯原始碼]

$ certtool -p --rsa --bits=keysize

生成證書籤名請求[編輯 | 編輯原始碼]

$ certtool -q --load-privkey private_key --outfile file

生成自簽名證書[編輯 | 編輯原始碼]

$ certtool -s --load-privkey private_key --outfile file

另請參見[編輯 | 編輯原始碼]