How to generate leaf certificates using PKI roles