Skip to content

Commit

Permalink
Add digital signatures to PDF reports using OpenSSL-generated self-si…
Browse files Browse the repository at this point in the history
…gned certificates

--

**Add digital signatures to PDF reports using OpenSSL-generated self-signed certificates**

- **Implemented digital signing of PDF erasure certificates**
  - Generates a self-signed X.509 certificate at runtime using OpenSSL.
  - Signs the generated PDF reports to ensure their authenticity and integrity.
- **Embedded the digital signature within the PDF documents**
  - Provides a method to verify that the reports are genuine and have not been tampered with.
- **Enhances security and trustworthiness of the PDF reports**
  - Ensures that recipients can validate the source and integrity of the reports.
- **Uses locally trusted PKI for proof of concept**
  - While a self-signed certificate is used for demonstration purposes, a certificate from a trusted Certificate Authority (CA) is recommended for production environments.
  • Loading branch information
Knogle committed Sep 25, 2024
1 parent c7155bf commit 2586b24
Show file tree
Hide file tree
Showing 3 changed files with 409 additions and 189 deletions.
18 changes: 18 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@ PKG_CHECK_MODULES(
)]
)

PKG_CHECK_MODULES(
[OPENSSL],
[openssl],
[
CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS}"
LIBS="${LIBS} ${OPENSSL_LIBS}"
],
[AC_CHECK_LIB([ssl], [SSL_library_init], [
LIBS="-lssl -lcrypto $LIBS"
AC_CHECK_HEADERS(openssl/ssl.h,, [
AC_CHECK_HEADERS(openssl/crypto.h, [
AC_DEFINE([OPENSSL_IN_SUBDIR], [openssl/], [Look for openssl headers in subdir])
], [AC_MSG_ERROR([openssl headers not found])])
])
], [AC_MSG_ERROR([OpenSSL development library not found])]
)]
)

PKG_CHECK_MODULES(
[LIBCONFIG],
[libconfig],
Expand Down
Loading

0 comments on commit 2586b24

Please sign in to comment.