public final class SelfSignedGenerator extends Object
public static Object[] generate(String cname, String ou, String o, String l, String st, String c, int validDays, SigType type) throws GeneralSecurityException
cname
- the common name, non-nullou
- The OU (organizational unit) in the distinguished name, non-null before 0.9.28, may be null as of 0.9.28o
- The O (organization)in the distinguished name, non-null before 0.9.28, may be null as of 0.9.28l
- The L (city or locality) in the distinguished name, non-null before 0.9.28, may be null as of 0.9.28st
- The ST (state or province) in the distinguished name, non-null before 0.9.28, may be null as of 0.9.28c
- The C (country) in the distinguished name, non-null before 0.9.28, may be null as of 0.9.28GeneralSecurityException