Unable to upload private key in certificates library

I tried to upload a private key to certificate library of Octopus server but got the following error:

Unable to parse certificate ‘private.key’ (id: Certificates-49): PEM file must contain a certificate

Private key has been generated on Linux via the following command:

openssl req -nodes -newkey rsa:2048 -keyout private.key -out server.csr

The private.key is in the form of

-----BEGIN PRIVATE KEY-----
.....
-----END PRIVATE KEY-----

private.key has no password

Any idea how to fix this issue ?

Regards

Hi @pr,

Thanks for getting in touch!

At the moment the certificate library within Octopus can only store certificates with or without a private key.
It is not able to store a private key by itself.

Regards,
Paul