public static String convertCrlToPEM(final X509CRL crl) throws DSSException {
  try {
    final byte[] derCrl=crl.getEncoded();
    String pemCrlPre=Base64.encodeBase64String(derCrl);
    final String pemCrl=CRL_BEGIN + NEW_LINE + pemCrlPre+ NEW_LINE+ CRL_END;
    return pemCrl;
  }
 catch (  CRLException e) {
    throw new DSSException("Unable to convert CRL to PEM encoding : " + e.getMessage());
  }
}

public static String convertCrlToPEM ( final X509CRL crl ) throws DSSException { try { final byte [ ] derCrl = crl . getEncoded ( ) ; String pemCrlPre = Base64 . encodeBase64String ( derCrl ) ; final String pemCrl = CRL_BEGIN + NEW_LINE + pemCrlPre + NEW_LINE + CRL_END ; return pemCrl ; } catch ( CRLException e ) { throw new DSSException ( "Unable to convert CRL to PEM encoding : " + e . getMessage ( ) ) ; } }
this method converts the given crl into its pem string .
