From 3851061b405f4463bb24194d57341d8f76603620 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 8 Feb 2025 22:00:39 +0100 Subject: Fix import of private keys from Windows to Linux. --- src/util.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/util.cc b/src/util.cc index 1be79be3..757553ae 100644 --- a/src/util.cc +++ b/src/util.cc @@ -287,6 +287,7 @@ dcp::write_string_to_file(string const& string, boost::filesystem::path const& p string dcp::private_key_fingerprint (string key) { + boost::replace_all(key, "\r", ""); boost::replace_all(key, "-----BEGIN RSA PRIVATE KEY-----\n", ""); boost::replace_all(key, "\n-----END RSA PRIVATE KEY-----\n", ""); boost::replace_all(key, "-----BEGIN PRIVATE KEY-----\n", ""); -- cgit v1.2.3