How to setup for Bring my own certificate to my own cloud instead of AWS IoT

We have our own IoT cloud and want to host our own PKI infrastructure. I