From 7997893522b1a52e6b3edf3f45096a2fdcaad476 Mon Sep 17 00:00:00 2001 From: Ayush Newatia Date: Wed, 17 Jun 2026 16:41:33 +0100 Subject: [PATCH 1/2] Include TLS in let's encrypt environment --- lib/falcon/environment/lets_encrypt_tls.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/falcon/environment/lets_encrypt_tls.rb b/lib/falcon/environment/lets_encrypt_tls.rb index d7a0152..cfc5acd 100644 --- a/lib/falcon/environment/lets_encrypt_tls.rb +++ b/lib/falcon/environment/lets_encrypt_tls.rb @@ -10,6 +10,8 @@ module Falcon module Environment # Provides an environment that uses "Lets Encrypt" for TLS. module LetsEncryptTLS + include TLS + # The Lets Encrypt certificate store path. # @parameter [String] def lets_encrypt_root From 41c513c32eaa05957420454f342605a1e7fb3260 Mon Sep 17 00:00:00 2001 From: Ayush Newatia Date: Wed, 17 Jun 2026 16:41:47 +0100 Subject: [PATCH 2/2] Change cert pkey to generic read --- lib/falcon/environment/lets_encrypt_tls.rb | 2 +- lib/falcon/environment/tls.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/falcon/environment/lets_encrypt_tls.rb b/lib/falcon/environment/lets_encrypt_tls.rb index cfc5acd..f9d7123 100644 --- a/lib/falcon/environment/lets_encrypt_tls.rb +++ b/lib/falcon/environment/lets_encrypt_tls.rb @@ -11,7 +11,7 @@ module Environment # Provides an environment that uses "Lets Encrypt" for TLS. module LetsEncryptTLS include TLS - + # The Lets Encrypt certificate store path. # @parameter [String] def lets_encrypt_root diff --git a/lib/falcon/environment/tls.rb b/lib/falcon/environment/tls.rb index b966901..4d9cce8 100644 --- a/lib/falcon/environment/tls.rb +++ b/lib/falcon/environment/tls.rb @@ -55,7 +55,7 @@ def ssl_private_key_path # The private key. # @returns [OpenSSL::PKey::RSA] def ssl_private_key - OpenSSL::PKey::RSA.new(File.read(ssl_private_key_path)) + OpenSSL::PKey.read(File.read(ssl_private_key_path)) end # The SSL context to use for incoming connections.