I use `certbot` to generate ssl cert for my domain.

Then I use the following commands to copy the content to clipboard

```
cat ./letsencrypt/live/mycompany.com/cert.pem |pbcopy
cat ./letsencrypt/live/mycompany.com/privkey.pem |pbcopy

```

and paste into **Google App Engine**'s "Add a new SSL certificate" dialog box.

However the private key is rejected due to 'The private key you've selected does not appear to be valid.'

[![I replaced the content with 'zzzz'](https://i.stack.imgur.com/J0xWk.png)](https://i.stack.imgur.com/J0xWk.png)

(I have replaced the content with 'zzzz')

How can I convert the certbot output into the right format?

Also I do not know exactly what format and roles are those certbot generated files are in.

```
cert.pem
chain.pem
fullchain.pem
privkey.pem

```