PHP code example of goletter / hyperf-mtls
1. Go to this page and download the library: Download goletter/hyperf-mtls library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
goletter / hyperf-mtls example snippets
bash
php bin/hyperf.php mtls:ca --cn "Goletter Root CA"
bash
php bin/hyperf.php mtls:client \
--user user-001 \
--password 123456
bash
php bin/hyperf.php mtls:client --user alice --password 123456
php bin/hyperf.php mtls:client --user bob --password 123456
bash
php bin/hyperf.php migrate