Skip to content

Commit e6f4115

Browse files
Fixes and feature updates (#16)
1 parent 0be4ba8 commit e6f4115

File tree

5 files changed

+168
-158
lines changed

5 files changed

+168
-158
lines changed

docs/examples.rst

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ Get all IP Hosts
1515
1616
fw.get_ip_host()
1717
18-
.. warning::
19-
Use `verify=False` if operating against a device that does not have a valid SSL certificate. For example, `fw.get_ip_host(verify=False)`.
20-
An SSLError will be thrown if certificate checking is enabled and the device does not have a valid certificate.
2118
2219
Get IP Host by Name
2320
^^^^^^^^^^^^^^^^^^^
@@ -119,7 +116,7 @@ Create IP Host
119116

120117
.. code-block:: python
121118
122-
response = fw.create_ip_host(name="test-host", ip_address="10.0.0.1", verify=False)
119+
response = fw.create_ip_host(name="test-host", ip_address="10.0.0.1")
123120
124121
{
125122
"Response": {

docs/usage.rst

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,15 @@ Import the module and create a `SophosFirewall` object:
3131
username=FIREWALL_USERNAME,
3232
password=FIREWALL_PASSWORD,
3333
hostname=FIREWALL_HOST_OR_IP,
34-
port=FIREWALL_PORT
34+
port=FIREWALL_PORT,
35+
verify=True
3536
)
3637
38+
.. warning::
39+
Use `verify=False` if operating against a device that does not have a valid SSL certificate. For example, `fw.get_ip_host(verify=False)`.
40+
An SSLError will be thrown if certificate checking is enabled and the device does not have a valid certificate.
41+
You may also specify the filename of the certificate chain in PEM format, for example `verify=firewall.pem`.
42+
3743
Execute one of the available :doc:`firewallapi` methods.
3844

3945
.. code-block:: python

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "sophosfirewall-python"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
description = "Python SDK for Sophos Firewall"
55
authors = ["Matt Mullen <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)