Error in adding Redfish supported Cisco IMC server in Manageiq


I am trying to add a Cisco IMC server to manageiq physical infrastructure provider(Compute --> Physical Infrastructure --> Providers)

Type: Redfish.

When trying add, getting below error.
Credential validation was not successful: Unexpected response returned from system: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate) (OpenSSL::SSL::SSLError) Unable to verify certificate. This may be an issue with the remote host or with Excon. Excon has certificates bundled, but these can be customized: Excon.defaults[:ssl_ca_path] = path_to_certs ENV['SSL_CERT_DIR'] = path_to_certs Excon.defaults[:ssl_ca_file] = path_to_file ENV['SSL_CERT_FILE'] = path_to_file Excon.defaults[:ssl_verify_callback] = callback (see OpenSSL::SSL::SSLContext#verify_callback) or: Excon.defaults[:ssl_verify_peer] = false (less secure).

Certificate we using are self signed.

We have the uploaded certificate to CIMC : myserver05.crt

How to add a redfish server with self signed certificate to manageiq?


I assume this is still the same issue as Unable to add a Cisco UCS server with a self signed certificate?

Hi buc

Apologies for posting again. I thought clarity was missing in previous post, didnt know the edit option at the end of the post.


Hello Mohan,

when you add a Provider, in the Endpoints section you can select the Security Protocol as SSL without validation. Have you perhaps tried using that option?

Hi Matejart,

I am getting below error on selecting the security protocol as SSL without validation

Security Protocol : SSL without validation
Hostname (or IPv4 or IPv6 address) :
API Port : 443
Username: admin

Credential validation was not successful: Unexpected response returned from system: Invalid credentials

When used curl call, we are getting response from the server

curl --insecure -u admin:admin

“Description”:“Collection of Computer Systems”,
“Name”:“Computer System Collection”,


Hello Mohan,

does your Redfish server support session logins? If you run:

curl -k -L

there should be a Links.Sessions[""] as the next URL to use, e.g.:

  [ ... ]
  "Links": {
    "Sessions": {
      "": "/redfish/v1/SessionService/Sessions"
  [ ... ]

Use this URL to try and log into a session, e.g.:

curl -v -k -L \
    -d '{"UserName":"admin","Password":"admin"}' \
    -H "Content-Type: application/json" \

What is the outcome of this command?

[ edited to add ]
What you should be getting is a JSON document that looks like this:

> POST /redfish/v1/SessionService/Sessions HTTP/1.1
[ ... ]
< Content-Type: application/json
[ ... ]
  "": "/redfish/v1/SessionService/Sessions/UUID-USED-AS-SESSION-TOKEN",
  "@odata.type": "#Session.v1_1_0.Session",
  "UserName": "redfish",
  "Password": null