public final class SelfSignedGenerator
extends java.lang.Object
コンストラクタ | 説明 |
---|---|
SelfSignedGenerator() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
static java.lang.Object[] |
generate(java.lang.String cname,
java.lang.String ou,
java.lang.String o,
java.lang.String l,
java.lang.String st,
java.lang.String c,
int validDays,
SigType type) |
|
static java.lang.Object[] |
generate(java.lang.String cname,
java.util.Set<java.lang.String> altNames,
java.lang.String ou,
java.lang.String o,
java.lang.String l,
java.lang.String st,
java.lang.String c,
int validDays,
SigType type) |
|
static void |
main(java.lang.String[] args) |
Note: For CLI testing, use java -jar i2p.jar su3file keygen pubkey.crt keystore.ks commonName
|
static java.lang.Object[] |
renew(java.security.cert.X509Certificate cert,
java.security.PrivateKey jpriv,
int validDays) |
public static java.lang.Object[] generate(java.lang.String cname, java.lang.String ou, java.lang.String o, java.lang.String l, java.lang.String st, java.lang.String c, int validDays, SigType type) throws java.security.GeneralSecurityException
cname
- the common name, non-null. Must be a hostname or email address. IP addresses will not be correctly encoded.ou
- 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.28java.security.GeneralSecurityException
public static java.lang.Object[] generate(java.lang.String cname, java.util.Set<java.lang.String> altNames, java.lang.String ou, java.lang.String o, java.lang.String l, java.lang.String st, java.lang.String c, int validDays, SigType type) throws java.security.GeneralSecurityException
cname
- the common name, non-null. Must be a hostname or email address. IP addresses will not be correctly encoded.altNames
- the Subject Alternative Names. May be null. May contain hostnames and/or IP addresses.
cname, localhost, 127.0.0.1, and ::1 will be automatically added.ou
- 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.28java.security.GeneralSecurityException
public static java.lang.Object[] renew(java.security.cert.X509Certificate cert, java.security.PrivateKey jpriv, int validDays) throws java.security.GeneralSecurityException
cert
- the old cert to be replacedjpriv
- the private keyjava.security.GeneralSecurityException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception