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 188ddf9 commit f3762e8Copy full SHA for f3762e8
mig/shared/install.py
@@ -1924,8 +1924,9 @@ def _generate_confs_prepare(
1924
openssl_proc = subprocess_popen(
1925
openssl_cmd, stdout=subprocess_pipe)
1926
raw_sha256 = openssl_proc.stdout.read().strip()
1927
- daemon_keycert_sha256 = raw_sha256.replace("SHA256 Fingerprint=",
1928
- "")
+ # NOTE: openssl outputs something like 'SHA256 Fingerprint=BLA'
+ # but algo part case may vary - split and take last part.
1929
+ daemon_keycert_sha256 = raw_sha256.split(" Fingerprint=", 1)[-1]
1930
except Exception as exc:
1931
print("ERROR: failed to extract sha256 fingerprint of %s: %s" %
1932
(key_path, exc))
0 commit comments