lib/tpm/key_attestation.rb in tpm-key_attestation-0.8.0 vs lib/tpm/key_attestation.rb in tpm-key_attestation-0.9.0
- old
+ new
@@ -84,10 +84,10 @@
end
def trust_store
@trust_store ||=
OpenSSL::X509::Store.new.tap do |trust_store|
- root_certificates.each { |root_certificate| trust_store.add_cert(root_certificate) }
+ root_certificates.uniq(&:serial).each { |root_certificate| trust_store.add_cert(root_certificate) }
end
end
def aik_certificate
@aik_certificate ||= TPM::AIKCertificate.from_der(certificates.first)