DMTF / Redfish-Mockup-Server

A simple Python 3.4 program that can be copied into a folder at the top of any Redfish mockup and can serve Redfish requests on the specified IP/port.
Other
83 stars 37 forks source link

SSL with self-signed certificate issue #96

Closed shesamian closed 1 year ago

shesamian commented 1 year ago

I am trying to use a self-signed certificate with Docker and I am wondering if it's even supported with Redfish-Mockup-Server

openssl req -new -x509 -keyout cert.pem -out cert.pem -days 365 -nodes

And run Docker:

docker run --rm --name asb88rn24u01  -p 80:80/tcp -p 443:443/tcp -v C:\asb88rn24u01:/mockup -v C:\cert.pem:/temp/cert.pem -v C:\key.pem:/temp/key.pem dmtf/redfish-mockup-server:latest -D /mockup  --cert /temp/cert.pem --key /temp/key.pem -p 443

It successfully connects but its having trouble with the certificate version being served image

logs: image

noxxi commented 1 year ago

Looks like a failure to use the -s|--ssl option of the server in order to actually do HTTPS and not plain HTTP