Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
fix: re-try disable ocsp
Browse files Browse the repository at this point in the history
  • Loading branch information
Scarjit committed Jan 25, 2024
1 parent aa36410 commit d8e6a15
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ COPY config/isrgrootx1.pem /src/isrgrootx1.pem
COPY config/lets-encrypt-r3.pem /src/lets-encrypt-r3.pem
COPY config/ca.pem /src/ca.pem
COPY config/general.h /src/config/general.h
COPY config/crypto.h /src/config/crypto.h

WORKDIR /src
RUN echo "Building dependencies"
Expand Down
81 changes: 81 additions & 0 deletions config/crypto.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#ifndef CONFIG_CRYPTO_H
#define CONFIG_CRYPTO_H

/** @file
*
* Cryptographic configuration
*
*/

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );

/** Minimum TLS version */
#define TLS_VERSION_MIN TLS_VERSION_TLS_1_1

/** RSA public-key algorithm */
#define CRYPTO_PUBKEY_RSA

/** AES-CBC block cipher */
#define CRYPTO_CIPHER_AES_CBC

/** AES-GCM block cipher */
#define CRYPTO_CIPHER_AES_GCM

/** MD4 digest algorithm */
//#define CRYPTO_DIGEST_MD4

/** MD5 digest algorithm */
//#define CRYPTO_DIGEST_MD5

/** SHA-1 digest algorithm */
#define CRYPTO_DIGEST_SHA1

/** SHA-224 digest algorithm */
#define CRYPTO_DIGEST_SHA224

/** SHA-256 digest algorithm */
#define CRYPTO_DIGEST_SHA256

/** SHA-384 digest algorithm */
#define CRYPTO_DIGEST_SHA384

/** SHA-512 digest algorithm */
#define CRYPTO_DIGEST_SHA512

/** SHA-512/224 digest algorithm */
//#define CRYPTO_DIGEST_SHA512_224

/** SHA-512/256 digest algorithm */
//#define CRYPTO_DIGEST_SHA512_256

/** Margin of error (in seconds) allowed in signed timestamps
*
* We default to allowing a reasonable margin of error: 12 hours to
* allow for the local time zone being non-GMT, plus 30 minutes to
* allow for general clock drift.
*/
#define TIMESTAMP_ERROR_MARGIN ( ( 12 * 60 + 30 ) * 60 )

/** Default cross-signed certificate source
*
* This is the default location from which iPXE will attempt to
* download cross-signed certificates in order to complete a
* certificate chain.
*/
#define CROSSCERT "http://ca.ipxe.org/auto"

/** Perform OCSP checks when applicable
*
* Some CAs provide non-functional OCSP servers, and some clients are
* forced to operate on networks without access to the OCSP servers.
* Allow the user to explicitly disable the use of OCSP checks.
*/
/*#define OCSP_CHECK*/
#undef OCSP_CHECK

#include <config/named.h>
#include NAMED_CONFIG(crypto.h)
#include <config/local/crypto.h>
#include LOCAL_NAMED_CONFIG(crypto.h)

#endif /* CONFIG_CRYPTO_H */
2 changes: 0 additions & 2 deletions config/general.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
* registers when iPXE traps to it due to
* privileged instructions */

#undef OCSP_CHECK /* Disable OCSP */
#define OCSP_ENABLED 0 /* Disable OCSP */

#include <config/named.h>
#include NAMED_CONFIG(general.h)
Expand Down

0 comments on commit d8e6a15

Please sign in to comment.