user story #2189: generic functions for managing custom certs

- We need to introduce installation of custom ssl certs in our
documentation.  Provide some helper classes/defines so that
we can make this process easy to document and setup.

- Added some test cases so we can verify it all works.

Change-Id: I095e752da1ad6703574188c2a1ac53ae5ff05f40