Browse Source

readme: added example how to register cert

Fabian Peter Hammerle 8 years ago
parent
commit
24d07a9386
1 changed files with 9 additions and 0 deletions
  1. 9 0
      README.md

+ 9 - 0
README.md

@@ -51,3 +51,12 @@ $config = [
     // ...
 ];
 ```
+
+### 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();
+```