Formatting the PEM File A PEM file must contain the following elements: Start with -----BEGIN CERTIFICATE----- A series of Base64 encoded data across multiple new lines. End with -----END CERTIFICATE----- Example: Reformat the PEM file into JSON format (a single line with new-line characters \n added) using JSON Query. jq -sR . <Your_PEM_File> (Optional) If you do not have JSON Query installed, you can use JQ Playground online: Set the QUERY to full stop. Under Options, choose -s (Slurp: read into array) and -R (Raw input). Under JSON, copy and paste the PEM file content. After reformatting in the JSON format with a single line with the new-line \n characters inserted, your PEM file should look similar to this: Continue with Configuring Cloud Explicit Proxy HTTPS.