[Issue #3] Fixed an issue where a cert already has the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines.