Browse Source

Allow upper case characters in SSH key SHA-1. Thanks Fabio! See issue 124.

pull/11/head
Eric Kok 12 years ago
parent
commit
5b79943b7f
  1. 2
      lib/src/org/transdroid/daemon/util/FakeTrustManager.java

2
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. // 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. // 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 { try {
//Assume self-signed root is okay? //Assume self-signed root is okay?
X509Certificate ss_cert = chain[0]; X509Certificate ss_cert = chain[0];

Loading…
Cancel
Save