io.netty.handler.ssl.util.OpenJdkSelfSignedCertGenerator.class Maven / Gradle / Ivy
???? 2 ? 8io/netty/handler/ssl/util/OpenJdkSelfSignedCertGenerator java/lang/Object #OpenJdkSelfSignedCertGenerator.java generate z(Ljava/lang/String;Ljava/security/KeyPair;Ljava/security/SecureRandom;Ljava/util/Date;Ljava/util/Date;)[Ljava/lang/String; java/lang/Exception 'java/security/cert/CertificateException
java/security/KeyPair
getPrivate ()Ljava/security/PrivateKey;
sun/security/x509/X509CertInfo ()V
sun/security/x509/X500Name java/lang/StringBuilder
CN= append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
! toString ()Ljava/lang/String; # $
% (Ljava/lang/String;)V '
( version * $sun/security/x509/CertificateVersion , (I)V .
- / set '(Ljava/lang/String;Ljava/lang/Object;)V 1 2
3 serialNumber 5 )sun/security/x509/CertificateSerialNumber 7 java/math/BigInteger 9 (ILjava/util/Random;)V ;
: < (Ljava/math/BigInteger;)V >
8 ? subject A (sun/security/x509/CertificateSubjectName C (Lsun/security/x509/X500Name;)V E
D F java/lang/String H java/security/SecureRandom J java/util/Date L java/security/PrivateKey N issuer P 'sun/security/x509/CertificateIssuerName R
S F validity U %sun/security/x509/CertificateValidity W #(Ljava/util/Date;Ljava/util/Date;)V Y
X Z key \ $sun/security/x509/CertificateX509Key ^ getPublic ()Ljava/security/PublicKey; ` a
b (Ljava/security/PublicKey;)V d
_ e algorithmID g (sun/security/x509/CertificateAlgorithmId i sun/security/x509/AlgorithmId k sha1WithRSAEncryption_oid $Lsun/security/util/ObjectIdentifier; m n l o '(Lsun/security/util/ObjectIdentifier;)V q
l r "(Lsun/security/x509/AlgorithmId;)V t
j u sun/security/x509/X509CertImpl w #(Lsun/security/x509/X509CertInfo;)V y
x z SHA1withRSA | sign /(Ljava/security/PrivateKey;Ljava/lang/String;)V ~
x ? algorithmID.algorithm ? x509.algorithm ? get &(Ljava/lang/String;)Ljava/lang/Object; ? ?
x ? verify ? d
x ? /io/netty/handler/ssl/util/SelfSignedCertificate ? newSelfSignedCertificate e(Ljava/lang/String;Ljava/security/PrivateKey;Ljava/security/cert/X509Certificate;)[Ljava/lang/String; ? ?
? ? ignore )Ljava/security/cert/CertificateException; fqdn Ljava/lang/String; keypair Ljava/security/KeyPair; random Ljava/security/SecureRandom; notBefore Ljava/util/Date; notAfter Ljava/security/PrivateKey; info Lsun/security/x509/X509CertInfo; owner Lsun/security/x509/X500Name; cert Lsun/security/x509/X509CertImpl;
this :Lio/netty/handler/ssl/util/OpenJdkSelfSignedCertGenerator; Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile 0 ? 7 +? :? Y? :? Y? Y? ? "*? "? &? ):+? -Y? 0? 46? 8Y? :Y@,? =? @? 4B? DY? G? 4? :B? 4Q? SY? T? 4? :Q? 4V? XY-? [? 4]? _Y+? c? f? 4h? jY? lY? p? s? v? 4? xY? {:}? ???? ?? 4? xY? {:}? ?+? c? ?*? ?? R b e p ? ? ? p g ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \ ? ? ? + ? ? ? ? = ? ? ? ^ / 2 3 + 4 : 5 R 7 b : e 8 g 9 p <