Skip to content

marco-introini/layer7-console

Repository files navigation

Layer 7 API Gateway mTLS Certificates Console

Console commands

Import from API Gateway

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

Default data

The seeders data are:

How this program works

To get certificate information we can use the RESTman url on Layer 7, with Basic Auth credentials:

  1. Users list
GET /restman/1.0/identityProviders/0000000000000000fffffffffffffffe/users
  1. For each user we can obtain the mTLS certificate
GET /restman/1.0/identityProviders/0000000000000000fffffffffffffffe/users/{{USER_ID}}/certificate
  1. Finally, from the certificate we can get the expiration date with openSSL
base64 -d <<< $cert | openssl x509 -inform DER -noout -dates

About

mTLS Certificate Management for Broadcom Layer7 API Gateway

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages