2017 © Pedro Peláez
 

library yii2-client-cert-auth

yii2 extension for automatic login via TLS/SSL/HTTPS client certificates

image

fphammerle/yii2-client-cert-auth

yii2 extension for automatic login via TLS/SSL/HTTPS client certificates

  • Monday, July 17, 2017
  • by fphammerle
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

PHP version Build Status, (*1)

yii2 extension for automatic login via TLS/SSL/HTTPS client certificates, (*2)

Setup

1. Configure Webserver

apache

<VirtualHost example.hammerle.me:443>
    # ...

    SSLEngine on
    SSLCertificateFile /etc/somewhere/example-server-cert.pem
    SSLCertificateKeyFile /etc/restricted/example-server-key.pem

    SSLVerifyClient optional
    SSLVerifyDepth 1
    SSLCACertificateFile /etc/somewhere/example-client-cert-ca.pem
    SSLOptions +StdEnvVars
</VirtualHost>

2. Install Extension

composer require fphammerle/yii2-client-cert-auth

3. Create Table

./yii migrate --migrationPath=./vendor/fphammerle/yii2-client-cert-auth/migrations

4. Enable Extension in Yii's Application Config

$config = [
    // ...
    'bootstrap' => ['clientCertAuth'],
    'components' => [
        // ...
        'clientCertAuth' => \fphammerle\yii2\auth\clientcert\Authenticator::className(),
    ],
    // ...
];

5. Register Client Certificates

$subj = new \fphammerle\yii2\auth\clientCert\Subject;
$subj->identity = \Yii::$app->user->identity;
$subj->distinguished_name = "CN=Fabian,C=AT";
$subj->save();

The Versions

17/07 2017

dev-master

9999999-dev

yii2 extension for automatic login via TLS/SSL/HTTPS client certificates

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fabian Peter Hammerle

authentication https yii2 x509 ssl client certificate

17/07 2017

1.0.0-alpha

1.0.0.0-alpha

yii2 extension for automatic login via TLS/SSL/HTTPS client certificates

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fabian Peter Hammerle

authentication https yii2 x509 ssl client certificate