站内导读

中文

定位:OpenSSL 是 OpenSSL 项目维护的开源工具包,实现 TLS、DTLS 与 QUIC 协议,并自带通用密码学库,适合在自有服务端或客户端程序里接入加密通信与证书处理。

核心能力

  • libssl 实现到 TLSv1.3、DTLSv1.3 与 QUIC v1,分别对应 RFC 8446、9147、9000。
  • libcrypto 是通用密码学库,既是 TLS 实现的基础,也能脱离协议层独立调用。
  • openssl 命令行工具可生成密钥参数、X.509 证书、CSR 与 CRL,也能计算摘要和加解密。
  • 随附一个通过 FIPS 标准验证的密码学模块,供有合规要求的部署使用。

适用人群:需要把 TLS、DTLS、QUIC 或密码学原语接入自有程序的 C 开发者,需自备构建环境并从源码编译,项目不提供二进制包。

注意:官方仅发布源码 tarball,不提供二进制形式。

README · 详细文档

来源 · 查看原文

Welcome to the OpenSSL Project ==============================

[![openssl logo]][www.openssl.org]

[![github actions ci badge]][github actions ci] 0 1 2 3 4

OpenSSL is a robust, commercial-grade, full-featured Open Source Toolkit for the Transport Layer Security (TLS, formerly SSL), Datagram TLS (DTLS), and QUIC protocols.

The protocol implementations are based on a full-strength general purpose cryptographic library, which can also be used stand-alone. Also included is a cryptographic module validated to conform with FIPS standards.

OpenSSL is descended from the SSLeay library developed by Eric A. Young and Tim J. Hudson.

The official Home Page of the OpenSSL Project is [www.openssl.org].

Table of Contents =================

- Overview - Download - Build and Install - Documentation - License - Support - Contributing - Legalities

Overview ========

The OpenSSL toolkit includes:

  • libssl

an implementation of all TLS protocol versions up to TLSv1.3 ([RFC 8446]), DTLS protocol versions up to DTLSv1.3 ([RFC 9147]) and the QUIC version 1 protocol ([RFC 9000]).

  • libcrypto

a full-strength general purpose cryptographic library. It constitutes the basis of the TLS implementation, but can also be used independently.

  • openssl

the OpenSSL command line tool, a Swiss Army knife for cryptographic tasks, testing and analyzing. It can be used for - creation of key parameters - creation of X.509 certificates, CSRs and CRLs - calculation of message digests - encryption and decryption - SSL/TLS/DTLS and client and server tests - QUIC client tests - handling of S/MIME signed or encrypted mail - and more...

Download ========

For Production Use ------------------

Source code tarballs of the official releases can be downloaded from openssl-library.org/source/. The OpenSSL project does not distribute the toolkit in binary form.

However, for a large variety of operating systems precompiled versions of the OpenSSL toolkit are available. In particular, on Linux and other Unix operating systems, it is normally recommended to link against the precompiled shared libraries provided by the distributor or vendor.

We also maintain a list of third parties that produce OpenSSL binaries for various Operating Systems (including Windows) on the [Binaries] page on our wiki.

For Testing and Development ---------------------------

Although testing and development could in theory also be done using the source tarballs, having a local copy of the git repository with the entire project history gives you much more insight into the code base.

The main OpenSSL Git repository is private. There is a public GitHub mirror of it at [github.com/openssl/openssl], which is updated automatically from the former on every commit.

A local copy of the Git repository can be obtained by cloning it from the GitHub mirror using

git clone https://github.com/openssl/openssl.git

If you intend to contribute to OpenSSL, either to fix bugs or contribute new features, you need to fork the GitHub mirror and clone your public fork instead.

git clone https://github.com/yourname/openssl.git

This is necessary because all development of OpenSSL nowadays is done via GitHub pull requests. For more details, see Contributing.

Build and Install =================

After obtaining the Source, have a look at the INSTALL file for detailed instructions about building and installing OpenSSL. For some platforms, the installation instructions are amended by a platform specific document.

Notes for UNIX-like platforms Notes for Android platforms Notes for Windows platforms Notes for the DOS platform with DJGPP Notes for the OpenVMS platform Notes on Perl * Notes on Valgrind

Specific notes on upgrading to OpenSSL 3.x from previous versions can be found in the [ossl-guide-migration(7ossl)] manual page.

Documentation =============

README Files ------------

There are some README.md files in the top level of the source distribution containing additional information on specific topics.

Information about the OpenSSL QUIC protocol implementation Information about the OpenSSL Provider architecture * Information about using the OpenSSL FIPS validated module

The OpenSSL Guide -----------------

There are some tutorial and introductory pages on some important OpenSSL topics within the [OpenSSL Guide].

Manual Pages ------------

The manual pages for the master branch and all current stable releases are available online.

Demos -----

There are numerous source code demos for using various OpenSSL capabilities in the demos subfolder.

Wiki ----

There is a [GitHub Wiki] which is currently not very active.

License =======

OpenSSL is licensed under the Apache License 2.0, which means that you are free to get and use it for commercial and non-commercial purposes as long as you fulfill its conditions.

See the LICENSE.txt file for more details.

Support =======

There are various ways to get in touch. The correct channel depends on your requirement. See the SUPPORT file for more details.

Contributing ============

If you are interested and willing to contribute to the OpenSSL project, please take a look at the CONTRIBUTING file.

Legalities ==========

A number of nations restrict the use or export of cryptography. If you are potentially subject to such restrictions, you should seek legal advice before attempting to develop or distribute cryptographic code.

Copyright =========

Copyright (c) 1998-2026 The OpenSSL Project Authors

Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson

All rights reserved.

[www.openssl.org]: <https://www.openssl.org> "OpenSSL Homepage"

[github.com/openssl/openssl]: <https://github.com/openssl/openssl> "OpenSSL GitHub Mirror"

[GitHub Wiki]: <https://github.com/openssl/openssl/wiki> "OpenSSL Wiki"

[ossl-guide-migration(7ossl)]: <https://docs.openssl.org/master/man7/ossl-guide-migration> "OpenSSL Migration Guide"

[RFC 8446]: <https://tools.ietf.org/html/rfc8446>

[RFC 6347]: <https://tools.ietf.org/html/rfc6347>

[RFC 9000]: <https://tools.ietf.org/html/rfc9000>

[RFC 9147]: <https://tools.ietf.org/html/rfc9147>

[Binaries]: <https://github.com/openssl/openssl/wiki/Binaries> "List of third party OpenSSL binaries"

[OpenSSL Guide]: <https://docs.openssl.org/master/man7/ossl-guide-introduction> "An introduction to OpenSSL"

[openssl logo]: doc/images/openssl.svg "OpenSSL Logo"

[github actions ci badge]: <https://github.com/openssl/openssl/workflows/GitHub%20CI/badge.svg> "GitHub Actions CI Status"

[github actions ci]: <https://github.com/openssl/openssl/actions/workflows/ci.yml> "GitHub Actions CI"

[appveyor badge]: <https://ci.appveyor.com/api/projects/status/8e10o7xfrg73v98f/branch/master?svg=true> "AppVeyor Build Status"

[appveyor jobs]: <https://ci.appveyor.com/project/openssl/openssl/branch/master> "AppVeyor Jobs"

相关项目 · GitHub 热门

查看全部「GitHub 热门」项目 →