encryption helpers

cert encryption helpers