=head1 NAME Mojolicious::Plugin::SslAuth - SSL client certificate auth helper =head1 DESCRIPTION L is a helper for authenticating client ssl certificates against CA's (certificate authorities) =head1 USAGE use Mojolicious::Lite; plugin 'ssl_auth'; get '/' => sub { my $self = shift; return $self->render_text('ok') if $self->ssl_auth( sub { return 1 if shift->peer_certificate('commonName') eq 'client'; } ); }; app->start; L connection passed as parameter. See L for available methods. (You're most likely looking for ->peer_certificate and/or ->get_cipher) B For Mojolicious versions < 1.13, use Mojolicious::Plugin::SslAuth 0.02 =head1 METHODS L inherits all methods from L and implements the following new ones. =head2 C $plugin->register; Register condition in L application. =head1 SEE ALSO L =head1 DEVELOPMENT L =head1 VERSION 0.04 =head1 AUTHOR Glen Hinkle tempire@cpan.org =cut