summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-02-08 22:00:39 +0100
committerCarl Hetherington <cth@carlh.net>2025-02-08 22:00:39 +0100
commit3851061b405f4463bb24194d57341d8f76603620 (patch)
tree228551d8a4fb4bed69f50ab16294d2b66c392d2e /src
parent3695f700496d43eb27adf112936972bad978c06c (diff)
Fix import of private keys from Windows to Linux.
Diffstat (limited to 'src')
-rw-r--r--src/util.cc1
1 files changed, 1 insertions, 0 deletions
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", "");