Sha256: 055b51c2402ab84bbca14988f504f172d4444f1b4802f122374b65f1e990e980
Contents?: true
Size: 891 Bytes
Versions: 3
Compression:
Stored size: 891 Bytes
Contents
require 'rubygems' require 'rack' require 'certmeister' require 'certmeister/redis/store' require 'certmeister/rack/app' require 'redis' store = Certmeister::Redis::Store.new(Redis.new, "development") sign_policy = Certmeister::Policy::ChainAll.new([ Certmeister::Policy::Domain.new(['host-h.net']), Certmeister::Policy::Fcrdns.new, Certmeister::Policy::Existing.new(store), ]) fetch_policy = Certmeister::Policy::Noop.new remove_policy = Certmeister::Policy::IP.new(['127.0.0.0/8']) ca = Certmeister.new( Certmeister::Config.new( sign_policy: sign_policy, fetch_policy: fetch_policy, remove_policy: remove_policy, store: store, ca_cert: File.read("../fixtures/ca.crt"), ca_key: File.read("../fixtures/ca.key"), ) ) certmeister = Certmeister::Rack::App.new(ca) app = Rack::Builder.new do map "/ca" do run certmeister end end run app
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
certmeister-0.4.1 | contrib/config.ru |
certmeister-0.4.0 | contrib/config.ru |
certmeister-0.3.2 | contrib/config.ru |