Refactored the certificate code

This now uses the same approach as other Graphite paths being able to
overwrite the default with an environment setting