If you work with ssh keys and you are unable to upload the private key to Buildozer because it tells you that either the format or passphrase is correct, please do the following:
1. Double check that you are using the correct passphrase. An incorrect passphrase covers the majority of reasons why Buildozer gives this error.
2. Check the format of the private key you are trying to upload. The first line of the private key file should read:
-----BEGIN RSA PRIVATE KEY-----
-----BEGIN OPENSSH PRIVATE KEY-----
Normally, ssh-keygen -t rsa -b 4096 will generate an RSA private key. However, on a Mac with home-brew installed, the default behaviour is changed and it will generate an OpenSSH private key.
To force the correct format, use this command to generate the key:
ssh-keygen -t rsa -b 4096 -C "name of your key" -m pem