Revision 6587
Added by ben leinfelder about 13 years ago
src/edu/ucsb/nceas/metacat/replication/ReplicationServlet.java | ||
---|---|---|
298 | 298 |
String entrySubject = CertificateManager.getInstance().getSubjectDN((X509Certificate) entryCertificate); |
299 | 299 |
logMetacat.debug("Entry certificate subject: " + entrySubject); |
300 | 300 |
if (entrySubject.equals(givenSubject)) { |
301 |
try { |
|
302 |
certificate.verify(entryCertificate.getPublicKey()); |
|
303 |
} catch (Exception e) { |
|
304 |
logMetacat.warn("Certificate not verifiable: " + e.getMessage(), e); |
|
305 |
continue; |
|
306 |
} |
|
301 |
// TODO: additional verification |
|
302 |
// try { |
|
303 |
// certificate.verify(entryCertificate.getPublicKey()); |
|
304 |
// } catch (Exception e) { |
|
305 |
// logMetacat.warn("Certificate not verifiable: " + e.getMessage(), e); |
|
306 |
// continue; |
|
307 |
// } |
|
307 | 308 |
// if we pass verification, we did it! |
308 | 309 |
return true; |
309 | 310 |
} |
Also available in: Unified diff
skip verification -- remaining TODO