From 5b79943b7f82cdcbb66a07c167fb40f5d6703c48 Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Sat, 1 Sep 2012 23:48:44 +0200 Subject: [PATCH] Allow upper case characters in SSH key SHA-1. Thanks Fabio! See issue 124. --- lib/src/org/transdroid/daemon/util/FakeTrustManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/org/transdroid/daemon/util/FakeTrustManager.java b/lib/src/org/transdroid/daemon/util/FakeTrustManager.java index 160f7035..bbb7bffc 100644 --- a/lib/src/org/transdroid/daemon/util/FakeTrustManager.java +++ b/lib/src/org/transdroid/daemon/util/FakeTrustManager.java @@ -33,7 +33,7 @@ public class FakeTrustManager implements X509TrustManager { // Otherwise, we have a certKey defined. We should now examine the one we got from the server. // They match? All is good. They don't, throw an exception. - String our_key = this.certKey.replaceAll("[^a-f0-9]+", ""); + String our_key = this.certKey.replaceAll("[^a-fA-F0-9]+", ""); try { //Assume self-signed root is okay? X509Certificate ss_cert = chain[0];