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: README-internal.md
+35-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,18 @@
1
1
This document is for internal users wanting to use this library to interact with the internal API. It will not work for `api.softlayer.com`.
2
2
3
+
## SSL: CERTIFICATE_VERIFY_FAILED fix
4
+
You need to specify the server certificate to verify the connection to the internal API since its a self signed certificate. Python's request module doesn't use the system SSL cert for some reason, so even if you can use `curl` without SSL errors becuase you installed the certificate on your system, you still need to tell python about it. Further reading:
`server_cert`: is the CA certificate bundle to validate the internal API ssl chain. Otherwise you get self-signed ssl errors without this.
19
32
20
33
21
-
```
34
+
```python
22
35
import SoftLayer
23
36
import logging
24
37
import click
@@ -37,4 +50,23 @@ if __name__ == "__main__":
37
50
testAuthentication()
38
51
```
39
52
40
-
## Employee Example
53
+
## Employee Example
54
+
55
+
To login with your employee username, have your config look something like this
56
+
57
+
*NOTE*: Currently logging in with the rest endpoint doesn't quite work, so use xmlrpc until I fix [this issue](https://github.ibm.com/SoftLayer/internal-softlayer-cli/issues/10)
58
+
59
+
```
60
+
[softlayer]
61
+
username = <softlayer domain username>
62
+
endpoint_url = https://<internal api endpoint>/v3/internal/xmlrpc/
63
+
verify = /etc/ssl/certs/allCAbundle.pem
64
+
```
65
+
66
+
You can login and use the `slcli` with. Use the `-i` flag to make internal API calls, otherwise it will make SLDN api calls.
67
+
68
+
```bash
69
+
slcli -i emplogin
70
+
```
71
+
72
+
If you want to use any of the built in commands, you may need to use the `-a <accountId>` flag.
0 commit comments