Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change(esp-wolfssl): allow to enable OCSP support #24

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@ menu "wolfSSL"
bool "Enable ALPN (Application Layer Protocol Negotiation) in wolfSSL"
default y

config WOLFSSL_HAVE_OCSP
bool "Enable OCSP (Online Certificate Status Protocol) in wolfSSL"
default n
mahavirj marked this conversation as resolved.
Show resolved Hide resolved
help
Enables Online Certificate Status Protocol (OCSP) within wolfSSL, which is the modern alternative
to maintaining Certificate Revocation Lists (CRLs). Enabling this option will make esp-tls to automatically
indicate support for OCSP when connecting as a TLS client. Server that support OCSP will forward the
certificate's revocation status to the client and the client will automatically verify the servers certificate
status based on the OCSP response forwarded to it.
Note: This option enables the OCSP in stapling (v1) mode for the client hence the TLS server needs to support OCSP stapling v1 .

endmenu # wolfSSL
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ It shows following options

- Enable ALPN ( Application Layer Protocol Negotiation ) in wolfSSL
- This option is enabled by default for wolfSSL, and can be disabled if not required.

- Enable OCSP (Online Certificate Status Protocol) in wolfSSL
- This options is disabled by default. Enabling it adds support for checking the host's certificate revocation status
during the TLS handshake.
---
**NOTE**
These options are valid for `esp-tls` only if `wolfSSL` is selected as its SSL/TLS Library.
Expand Down
5 changes: 5 additions & 0 deletions port/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@

#define HAVE_SNI

#ifdef CONFIG_WOLFSSL_HAVE_OCSP
#define HAVE_OCSP
mahavirj marked this conversation as resolved.
Show resolved Hide resolved
#define HAVE_CERTIFICATE_STATUS_REQUEST
mahavirj marked this conversation as resolved.
Show resolved Hide resolved
#endif

/* do not use wolfssl defined app_main function used to test esp-wolfssl */
#define NO_MAIN_DRIVER

Expand Down