proper Buffer conversion for cert data