PHPackages                             fphammerle/yii2-client-cert-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. fphammerle/yii2-client-cert-auth

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

fphammerle/yii2-client-cert-auth
================================

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

1.0.0-alpha(8y ago)1301MITPHPPHP &gt;=5.4.0

Since Jul 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/fphammerle/yii2-client-cert-auth)[ Packagist](https://packagist.org/packages/fphammerle/yii2-client-cert-auth)[ RSS](/packages/fphammerle-yii2-client-cert-auth/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (2)Used By (0)

[![PHP version](https://camo.githubusercontent.com/64965f09abf9d14c52c38e6af467301de93c87b6702821c353ffea6ee80fdcca/68747470733a2f2f62616467652e667572792e696f2f70682f667068616d6d65726c65253246796969322d636c69656e742d636572742d617574682e737667)](https://badge.fury.io/ph/fphammerle%2Fyii2-client-cert-auth)[![Build Status](https://camo.githubusercontent.com/e7584f142204ea7478321250ab729941d9f0e50bbc81e8eef52dceb8f9b6e180/68747470733a2f2f7472617669732d63692e6f72672f667068616d6d65726c652f796969322d636c69656e742d636572742d617574682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fphammerle/yii2-client-cert-auth)

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

Setup
-----

[](#setup)

### 1. Configure Webserver

[](#1-configure-webserver)

#### apache

[](#apache)

```

    # ...

    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

```

### 2. Install Extension

[](#2-install-extension)

```
composer require fphammerle/yii2-client-cert-auth

```

### 3. Create Table

[](#3-create-table)

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

```

### 4. Enable Extension in Yii's Application Config

[](#4-enable-extension-in-yiis-application-config)

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

```

### 5. Register Client Certificates

[](#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();

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3271d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8507803?v=4)[Fabian Peter Hammerle](/maintainers/fphammerle)[@fphammerle](https://github.com/fphammerle)

---

Top Contributors

[![fphammerle](https://avatars.githubusercontent.com/u/8507803?v=4)](https://github.com/fphammerle "fphammerle (43 commits)")

---

Tags

httpsx509Authenticationsslyii2client certificate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fphammerle-yii2-client-cert-auth/health.svg)

```
[![Health](https://phpackages.com/badges/fphammerle-yii2-client-cert-auth/health.svg)](https://phpackages.com/packages/fphammerle-yii2-client-cert-auth)
```

###  Alternatives

[nodge/yii2-eauth

Yii2 EAuth Extension. EAuth allows to authenticate users with accounts on other websites (Google, Facebook, Twitter, etc).

191101.5k](/packages/nodge-yii2-eauth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
