summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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", "");