Here you will find ideas and links for as you are building your tools. How to secure them properly.
Lightweight tools for creating a ssl certificate authority
Identity Services - SelfHosted