Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Bowman_Klinkenb
Participant

How to resolve unverified HTTPS error in cpauto?

I've been having a great experience building CLI tools based on #cpauto. Props to Dana Traversie!

Does anyone have best practices suggestions for adding HTTPS verification and avoiding the following error that I get on each API request?:

/venv/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)

0 Kudos
2 Replies
Dana_Traversie
Employee
Employee

0 Kudos
John_Tammaro1
Contributor
Contributor

I wanted to add the actual solution here in this post that was provided by Dana Traversie as seen below.

As a complete novice python programmer, the documentation linked to did not help at all, and quite honestly confused me even more. I found the solution in another CP Communities post, but thought it would make sense to have linked directly to this.

Hopefully this will help others from struggling like I did.

Hello Irek.

 

Try again with SSL certificate verification disabled:

 

>>> cc=cpauto.CoreClient('root','password','10.254.253.110',verify=False)

Helpful Yes  NoLike  0Reply
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events