Closed rahulmah closed 5 years ago
This Issue is only seen only when KeyBitLength in CSR request is set to 512. And it is not seen when KeyBitLength is set to 1024, 2048, 4096. After discussing with @ojayanth, opening this issue in bmcweb to further debug.
@edtanous : Please look into this issue and let us know your thoughts on this failure.
@devenrao @ojayanth Can you have a look?
We are having discussions on IRC whether to support RSA due to the time taken to generate CSR as it is taking time more than the https request timeout of 10 seconds. We may either remove RSA support or support only RSA with key-bit length of 2048.
Sure @devenrao
At present supporting only 2048 key bit length with pre-generated private key, the changes are pushed through https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/19421
Thanks for the update @devenrao . Closing the issue.
Bmcweb fails after CA signed certificate upload which in created using CSR.
Journal log
Steps to reproduce:
Generate Root CA private key(rootCA.key):
openssl genrsa -des3 -out rootCA.key 204
Generate Root CA certificate(rootCA.pem) using:
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem
Now generate CSR request from BMC using json file generate_csr_wsbmc015.json
Convert response into .csr file(device.csr)
Now use BMC generated CSR request(device.csr) to generate CA signed certificate(device.crt)
openssl x509 -req -in device.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out device.crt -days 500 -sha256
Now create json file(certificate.json) with above generated CA signed certificate file (device.crt).