rancher: Add certificate error
Tried to add a certificate Got an error: Private Key is invalid. Please make sure it is a RSA key. Certificate is invalid.
The same key and the certificate added successfully in Rancher 1.6
Useful | Info |
---|---|
Versions | Rancher v2.0.0-beta4 UI: v2.0.38 |
Access | local admin |
Route | authenticated.cluster.index |
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 7
- Comments: 27 (5 by maintainers)
API does also not work for us:
After some investigation I saw the manual created tls certs have \n and the api replaces that with \r\n. Are those line feeds supported or maybe the problem?
Endpoint used:
Same issue here.
Rancher v.2.0.0 UI v2.0.41
It’s broken in 2.0.0, I broke all validation in the UI instead of adding elliptical curve support. Will be fixed in the first patch release.
You can go to the API in your browser and add it if you need one now:
certificates
ornamespacedCertificates
link<->
icons for multi-line inputSame issue here. Key starts with: -----BEGIN RSA PRIVATE KEY-----
openssl rsa -in key.pem -out newkey.pem
to convert keys starting with ----- BEGIN PRIVATE KEY ----- (PKCS#8) to keys starting with ----- BEGIN RSA PRIVATE KEY -----.