tbsGen.setIssuer(issuer);
try { tbsGen.setIssuer(new X509Principal(issuer.getEncoded())); } catch (IOException e) { throw new IllegalArgumentException("can't process principal: " + e); }
    public void setIssuerDN(        X509Name   issuer)    {        tbsGen.setIssuer(issuer);    }