public void checkCsr(CertificationRequest csr) throws OperationException { Args.notNull(csr, "csr"); if (!caManager.getSecurityFactory().verifyPopo(csr, getCmpControl().getPopoAlgoValidator())) { LOG.warn("could not validate POP for the pkcs#10 requst"); throw new OperationException(BAD_POP); } }
@Override protected Object execute0() throws Exception { CertificationRequest csr = X509Util.parseCsr(IoUtil.read(csrFile)); String sigAlgo = AlgorithmUtil.getSignatureAlgoName(csr.getSignatureAlgorithm()); boolean bo = securityFactory.verifyPopo(csr, null); String txt = bo ? "valid" : "invalid"; println("The POP is " + txt + " (signature algorithm " + sigAlgo + ")."); return null; }
if (!securityFactory.verifyPopo(csr, null)) { throw new InvalidConfException("could not validate POP for the CSR");
X509Ca ca = getCa(); if (!securityFactory.verifyPopo(p10cr, getCmpControl().getPopoAlgoValidator())) { LOG.warn("could not validate POP for the pkcs#10 requst"); certResp = buildErrorCertResponse(certReqId, PKIFailureInfo.badPOP, "invalid POP");
if (!securityFactory.verifyPopo(csr, cmpControl.getPopoAlgoValidator())) { throw new CaMgmtException("could not validate POP for the CSR");