-
Notifications
You must be signed in to change notification settings - Fork 57
Validate secure connection to OneView using a certificate file #339
Comments
A call to https://github.com/HewlettPackard/python-hpOneView/blob/master/hpOneView/connection.py#L94 before login at https://github.com/HewlettPackard/python-hpOneView/blob/master/hpOneView/oneview_client.py#L122 should be enough given that the certificate is loaded by config. |
Hey @ricardoas , I've pushed PR #340 now which should allow you to specify the certificate file. The PR still requires tests to be updated and a few things to be actually ready, but it should already be usable. To generate a cert file, just run: This will return a lot of stuff, copy this part into a <somefile.crt> file:
Then, add the location of your file inside your Here is an example when config = {
"ip": "172.16.101.48",
"credentials": {
"userName": "administrator",
"password": "mypass"
},
"api_version": 300,
"sslBundle": "test.crt"
} Cheers, |
Great news, @fgbulsoni!!! It worked fine here with the test case we tried out before opening this issue... we can (and will) conduct some further tests using OpenStack while you update the PR, it will take a while to set everything up, but I expect them to be fine too. Thanks! |
Scenario/Intent
I want to establish a secure HTTPS connection with OneView validating it with a given certificate file passed as one of the configuration credentials parameters.
Environment Details
Steps to Reproduce
The code below opens an insecure connection to OneView, relying only on username+password for authentication, which is ok for development environments.
There should be way to inform the certificate file in the credentials to ensure the SDK is really connecting to OneView. Something like:
Expected Result
I expect the SDK to:
Actual Result
The client provides only a non-validated secure connection mode.
The text was updated successfully, but these errors were encountered: