Here is the code to my solutions for the api and microservices certificate.
A live demo is available at https://fcc.xdevbox.net/