List of usage examples for org.bouncycastle.asn1.x509 Certificate getIssuer
public X500Name getIssuer()
From source file:org.xipki.pki.scep.client.shell.GetCrlCmd.java
License:Open Source License
@Override protected Object doExecute() throws Exception { Certificate cert = Certificate.getInstance(IoUtil.read(certFile)); ScepClient client = getScepClient(); X509CRL crl = client.scepGetCrl(getIdentityKey(), getIdentityCert(), cert.getIssuer(), cert.getSerialNumber().getPositiveValue()); if (crl == null) { throw new CmdFailure("received no CRL from server"); }//from w ww .java 2 s .co m saveVerbose("saved CRL to file", new File(outputFile), crl.getEncoded()); return null; }