We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb18dc commit 17b3808Copy full SHA for 17b3808
laps-client/laps_client/__init__.py
@@ -9,9 +9,19 @@
9
10
11
12
+import os, sys
13
import getpass
14
15
16
+if 'darwin' in sys.platform.lower():
17
+ # set OpenSSL path to macOS defaults
18
+ # (Github Runner sets this to /usr/local/etc/openssl@1.1/ which does not exist in plain macOS installations)
19
+ os.environ['SSL_CERT_FILE'] = '/private/etc/ssl/cert.pem'
20
+ os.environ['SSL_CERT_DIR'] = '/private/etc/ssl/certs'
21
+ # system CA certs debugging
22
+ #import ssl; print(ssl.get_default_verify_paths())
23
+ #ctx = ssl.SSLContext(); ctx.load_default_certs(); print(ctx.get_ca_certs())
24
+
25
def proposeUsername(domain):
26
return getpass.getuser() + ('@'+domain if domain else '')
27
0 commit comments