We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4415aed commit 95f0cabCopy full SHA for 95f0cab
solnlib/server_info.py
@@ -31,6 +31,14 @@ def getWebKeyFile():
31
return None
32
33
34
+try:
35
+ from splunk.rest import is_cert_or_key_encrypted
36
+except (ModuleNotFoundError, ImportError):
37
+
38
+ def is_cert_or_key_encrypted():
39
+ return False
40
41
42
from splunklib import binding
43
from solnlib import splunk_rest_client as rest_client
44
from solnlib import utils
@@ -75,7 +83,7 @@ def __init__(
75
83
host == "localhost" or host == "127.0.0.1" or host in ("::1", "[::1]")
76
84
)
77
85
78
- if getWebCertFile() and getWebKeyFile():
86
+ if getWebCertFile() and getWebKeyFile() and not is_cert_or_key_encrypted():
79
87
context["cert_file"] = getWebCertFile()
80
88
context["key_file"] = getWebKeyFile()
81
89
0 commit comments