Skip to content

Parse digital client certificates for Perl's PSGI web servers.

License

Notifications You must be signed in to change notification settings

kcaran/Plack-Middleware-ClientCert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Plack::Middleware::ClientCert - Parse digital client certificates for Perl's PSGI web servers.

VERSION

version 0.100

SYNOPSIS

Parse a client certificate and put details in the env

use Plack::Builder;

my $app = sub {
    my $env = shift;
    return [
        200,
        [ 'Content-Type' => 'text/plain' ],
        [ "Hello $env->{ client_cn } from $env->{ client_ou } of $env->{ clent_o }" ],
    ];
};

builder {
    enable 'ClientCert';
    $app;
};

DESCRIPTION

Plack::Middleware::ClientCert parses the fields of a digital certificate in either Apache or IIS. The certificate distinguished name is either slash-delimited or comma delimited in the form:

C=US, O=Agents Virtual Community, OU="My Insurance, Inc.", CN=Troy O'Leary

Any fields containing a comma are double-quoted.

The keys for the certificate are:

client_cn client_ou client_o

NAME

Plack::Middleware::ClientCert

AUTHOR

Keith Carangelo mail@kcaran.com

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Keith Carangelo.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

Parse digital client certificates for Perl's PSGI web servers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages