Can't upload certificate to AWS

Solution 1:

Add a file:// before the file names.

Solution 2:

I've seen this when the key wasn't in RSA format. If you check the header for your key and it is -----BEGIN PRIVATE KEY----- instead of -----BEGIN RSA PRIVATE KEY----- that's probably your problem. You can get the key into RSA with:

 openssl rsa -in my-private-key.pem > private-rsa-key.pem