Sha256: 6f969b347be8f7b8c8a3e89847b932d897202fa745d67a3dc6e34580fb9e8b76
Contents?: true
Size: 453 Bytes
Versions: 8
Compression:
Stored size: 453 Bytes
Contents
require 'socket' require 'openssl' require 'certstore' cert_store = OpenSSL::X509::Store.new loader = Certstore::OpenSSL::Loader.new(cert_store, "Trust", enterprise: true) File.open(File.join(__dir__, "..", "./test/data/ca_cert.pem")) do |file| x509_obj = OpenSSL::X509::Certificate.new(file.read) thumbprint = OpenSSL::Digest::SHA1.new(x509_obj.to_der).to_s loader.add_certificate(file) loader.delete_certificate(thumbprint) end
Version data entries
8 entries across 8 versions & 4 rubygems