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

Version Path
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/certstore_c-0.1.7/example/manage_certstore.rb
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/certstore_c-0.1.7/example/manage_certstore.rb
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/certstore_c-0.1.7/example/manage_certstore.rb
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/certstore_c-0.1.7/example/manage_certstore.rb
certstore_c-0.1.7 example/manage_certstore.rb
certstore_c-0.1.6 example/manage_certstore.rb
certstore_c-0.1.5 example/manage_certstore.rb
certstore_c-0.1.4 example/manage_certstore.rb