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

python and web web api

I  was try  to run the sample Python script that use the web-service API  on Check Point Management API reference but  I got these errors when run the sample  python scripts . Can anyone help me with this problem

5 Replies
PhoneBoy
Admin
Admin

Forget the exact option, but you need to tell Python to trust the SSL certificate that comes from the API server.

Art_Zalenekas
Employee
Employee

Rob_A
Participant

Try this

import requests, urllib3, urllib3.disable_warnings()

 

Richie
Participant

Hi PhoneBoy 

 

I wan to know if it done this way to  connecting to the management server by python scripts

PhoneBoy
Admin
Admin

Looks right to me, but I'm also not a Python expert.
Copy/pasting the code directly in the community would make it a lot easier for others to comment/confirm.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events