To import users and certificates from the API Gateway
php artisan gateway:get-users
To import trusted certificates
php artisan gateway:get-trusted-certs
To import private keys
php artisan gateway:get-private-keys
To import services from API Gateway
php artisan gateway:get-services
To check the validity of mTLS certificates
php artisan certificates:check
The seeders data are:
- user: layer7@admin.com
- password: layer7
To get certificate information we can use the RESTman url on Layer 7, with Basic Auth credentials:
- Users list
GET /restman/1.0/identityProviders/0000000000000000fffffffffffffffe/users
- For each user we can obtain the mTLS certificate
GET /restman/1.0/identityProviders/0000000000000000fffffffffffffffe/users/{{USER_ID}}/certificate
- Finally, from the certificate we can get the expiration date with openSSL
base64 -d <<< $cert | openssl x509 -inform DER -noout -dates