Switch pem_to_base64 to read from stdin