spec/fixtures.rb in r509-ocsp-responder-0.3.2 vs spec/fixtures.rb in r509-ocsp-responder-0.3.3
- old
+ new
@@ -52,28 +52,26 @@
def self.test_ca_subroot_cert
R509::Cert.new(:cert => TEST_CA_SUBROOT_CERT, :key => TEST_CA_SUBROOT_KEY)
end
def self.test_ca_server_profile
- R509::Config::CAProfile.new(
- :basic_constraints => { "ca" => false },
- :key_usage => ["digitalSignature","keyEncipherment"],
- :extended_key_usage => ["serverAuth"]
+ R509::Config::CertProfile.new(
+ :basic_constraints => { :ca => false },
+ :key_usage => { :value => ["digitalSignature","keyEncipherment"] },
+ :extended_key_usage => { :value => ["serverAuth"] }
)
-
end
def self.second_ca_cert
R509::Cert.new(:cert => SECOND_CA_CERT, :key => SECOND_CA_KEY)
end
def self.second_ca_server_profile
- R509::Config::CAProfile.new(
- :basic_constraints => { "ca" => false },
- :key_usage => ["digitalSignature","keyEncipherment"],
- :extended_key_usage => ["serverAuth"]
+ R509::Config::CertProfile.new(
+ :basic_constraints => { :ca => false },
+ :key_usage => { :value => ["digitalSignature","keyEncipherment"] },
+ :extended_key_usage => { :value => ["serverAuth"] }
)
-
end
# @return [R509::Config::CAConfig]
def self.test_ca_config
crl_list_sio = StringIO.new