openbmc-tools icon indicating copy to clipboard operation
openbmc-tools copied to clipboard

Can't upload new https certificate

Open stendebach opened this issue 5 years ago • 3 comments

Hi,

when I try to install a new certificate I get the following error message.

py openbmctool.py -H xxx.xxx.xxx.xxx -U root -P xxxxxx certificate update server https -f "xxxx.pem" Attempting login... Updating certificate url=https://xxx.xxx.xxx.xxx/xyz/openbmc_project/certs/server/https { "data": { "description": "The specified resource cannot be created" }, "message": "403 Forbidden", "status": "error" } Failed to update the certificate User root has been logged out

stendebach avatar Feb 03 '20 14:02 stendebach

Anything seem out of sorts with the command used @ojayanth or @devenrao ?

geissonator avatar Feb 04 '20 20:02 geissonator

I tried to first update the root certificate, but i received the same error message:

py openbmctool.py -H xxx.xxx.xxx.xxx -U root -P xxxxxx certificate update authority https -f "root.pem" Attempting login... Updating certificate url=https://xxx.xxx.xxx.xxx/xyz/openbmc_project/certs/authority/https { "data": { "description": "The specified resource cannot be created" }, "message": "403 Forbidden", "status": "error" } Failed to update the certificate User root has been logged out

stendebach avatar Feb 06 '20 10:02 stendebach

please use replace interface as we are allowing only 1 https certificate for now python openbmctool.py -H xx -U root -P 0penBmc certificate replace server https -f prascert.pem

devenrao avatar Mar 09 '20 15:03 devenrao