Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rack middleware (for r509-ca-http) that writes issued certificates to disk.

branch: master

Fetching latest commit…


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 Rakefile
Octocat-spinner-32 r509-middleware-certwriter.gemspec

r509-middleware-certwriter Build Status Coverage Status

This project is related to r509 and r509-ca-http, allowing you to save all issued certificates to the filesystem after they're issued. This is middleware so that you don't need to have your CA know anything about writing to the filesystem if you don't want to.


Add this to the file for your r509-ca-http instance.

require 'r509/middleware/certwriter'

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

You'll also need to tell your CA where to save the issued certificates. Add this to the bottom of your r509-ca-http config.yaml:

certwriter: {
  path: "/absolute/path/to/wherever/you/want/the/certs"

Now every time a certificate is issued, it will be saved to the filesystem.

Something went wrong with that request. Please try again.