protected void requireSystemAccess() throws AuthenticatorException {
X509Certificate[] certChain = getCertificateChain();
if (certChain != null && certChain.length != 0) {
CertificateChainInfo chain = new CertificateChainInfo();
for (X509Certificate cert : certChain) {
CertificateInfo info = new CertificateInfo();
info.publicKey = Hex.toHex(cert.getPublicKey().getEncoded());
info.subjectDN = Certificates.getSubject(cert);
// Md5Hash hash = OpenSshUtils.getSignature(cert.getPublicKey());