We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605f80d commit 49b752eCopy full SHA for 49b752e
lib/bullion.rb
@@ -69,7 +69,11 @@ class ConfigError < Error; end
69
MetricsRegistry = Prometheus::Client.registry
70
71
def self.ca_key
72
- @ca_key ||= OpenSSL::PKey::RSA.new(File.read(config.ca.key_path), config.ca.secret)
+ @ca_key ||= begin
73
+ OpenSSL::PKey::RSA.new(File.read(config.ca.key_path), config.ca.secret)
74
+ rescue OpenSSL::PKey::RSAError
75
+ OpenSSL::PKey::EC.new(File.read(config.ca.key_path), config.ca.secret)
76
+ end
77
end
78
79
def self.ca_cert_file
0 commit comments