Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rack Middleware that plugs into r509-ca-http and records the validity status of issued certificates to a Redis database.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 r509-middleware-validity.gemspec
README.md

r509-middleware-validity Build Status Coverage Status

This project is related to r509 and r509-ca-http, allowing us to save certificate validity status to a Redis backend via Rack Middleware, so the CA itself doesn't need to know anything about Redis. This is done so that you can run a CA without saving validity status, if you want to do that.

Redis

Make sure you have a Redis server running on localhost. The standard configuration should work. You also need to gem install redis.

Ruby will connect to it using Redis.new.

config.ru

require 'r509/middleware/validity'

use R509::Middleware::Validity
run R509::CertificateAuthority::Http::Server

Now all the issue/revoke/unrevoke events will be saved in your Redis database.

Something went wrong with that request. Please try again.