diff --git a/lib/falcon/environment/lets_encrypt_tls.rb b/lib/falcon/environment/lets_encrypt_tls.rb index d7a0152..f9d7123 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 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.