I have a piece of code that is using a certificate for authentication with a cloud service. The certificate is stored locally, and is protected by a password - thus what the developers did is to hardcode the password in their code.
I was wondering if there is a more secure method of performing this, as if the piece of code is compromised, the certificate password is compromised as well.
Any better solutions?