You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage-instructions-v2.md
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,32 @@ for group in groups:
135
135
print(group)
136
136
```
137
137
138
+
## Disabling SSL Verification
139
+
140
+
In environments where SSL inspection is enforced at the firewall, the UMAPI client can encounter the following error:
141
+
142
+
2017-07-07 09:01:37 4916 CRITICAL main - UMAPI connection to org id 'someUUIDvalue@AdobeOrg' failed: [SSL: CERTIFICATE_VERIFY_FAILED]
143
+
144
+
This is because the requests module is not aware of the middle-man certificate required for SSL inspection. The recommended solution to this problem is to specify a path to the certificate bundle using the REQUESTS_CA_BUNDLE environment variable (see https://helpx.adobe.com/enterprise/kb/UMAPI-UST.html for details). However, in some cases following these steps does not solve the problem. The next logical step is to disable SSL inspection on the firewall for the UMAPI traffic. If, however, this is not permitted, you may work around the issue by disabling SSL verification for user-sync.
145
+
146
+
Disabling the verification is unsafe, and leaves the umapi client vulnerable to middle man attacks, so it is recommended to avoid disabling it if at all possible. The umapi client only ever targets two URLs - the usermanagement endpoint and the ims endpoint - both of which are secure Adobe URL's. In addition, since this option is only recommended for use in a secure network environment, any potential risk is further mitigated.
147
+
148
+
To bypass the SSL verification, construct the Connection object using `ssl_verify=False` argument (set the True by default). Borrowing from the initial example,
149
+
150
+
```python
151
+
conn = umapi_client.Connection(
152
+
org_id=config["org_id"],
153
+
auth_dict=config,
154
+
ssl_verify=False
155
+
)
156
+
```
157
+
158
+
During the calls, you will also see a warning from requests:
159
+
160
+
"InsecureRequestWarning: Unverified HTTPS request is being made to host 'usermanagement-stage.adobe.io'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
161
+
InsecureRequestWarning"
162
+
163
+
138
164
# Performing Operations on Users
139
165
140
166
User operations in the UMAPI are performed in three steps:
0 commit comments