Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit cacbeaea authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent e7994ddf
No related branches found
No related tags found
No related merge requests found
......@@ -292,9 +292,9 @@ def get_curl_files(conf: Tuple[str, Dict[str, List[any]]]) -> FileGenerator:
pub_md5 = None
pub_sha256 = None
pub_key = None
try:
try: # 2022-03-23: added ssh settings
insecure, ocsp, no_revoke, cert_chain = url_settings['cert_verify']
except ValueError:
except ValueError: # 2022-03-23: added ssh settings
insecure, ocsp, no_revoke, cert_chain, pub_md5, pub_sha256, pub_key = url_settings['cert_verify']
if insecure:
options_array.append(f'--insecure')
......@@ -318,7 +318,7 @@ def get_curl_files(conf: Tuple[str, Dict[str, List[any]]]) -> FileGenerator:
if pub_key:
yield PluginConfig(
base_os=_os,
lines=[cert_chain],
lines=[pub_key],
target=Path(f'curl/curl_item_{curl_item}.pub_key'),
include_header=False,
)
......
No preview for this file type
......@@ -330,7 +330,7 @@ _option_curl_service = ('curl_service',
allow_empty=False,
size=90,
placeholder='https://www.example.com',
forbidden_chars=forbidden_chars,
# forbidden_chars=forbidden_chars,
),
],
orientation='horizontal',
......@@ -353,7 +353,7 @@ _option_verify_remote_host = ('cert_verify',
Checkbox('Use OCSP to check certificate status'),
Checkbox('Disable cert revocation checks (WinSSL)'),
Optional(Foldable(CAorCAChain()), label='Certificate to verify against', ),
Optional(TextUnicode(size=35, minlen=32, maxlen=32, regex='[0-9a-fA-F]', ),
Optional(TextUnicode(size=40, minlen=32, maxlen=32, regex='[0-9a-fA-F]', ),
label='Expected MD5 hash of pub key'),
Optional(TextUnicode(size=60, allow_empty=False),
label='Expected SHA256 hash of pub key'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment