summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc
index 6ae69387..b58035ea 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -293,6 +293,8 @@ dcp::private_key_fingerprint (string key)
{
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", "");
+ boost::replace_all (key, "\n-----END PRIVATE KEY-----\n", "");
unsigned char buffer[4096];
int const N = base64_decode (key, buffer, sizeof (buffer));