Add utility function for loading certificates from a buffer