Should this be reading from a file, or just accepting a string as an argument? If it's a file, I'm somewhat inclined to call it `pemfile->object` or something.