All Downloads are FREE. Search and download functionalities are using the official Maven repository.

classes.io.netty.handler.ssl.util.SelfSignedCertificate.class Maven / Gradle / Ivy

The newest version!
????2f	R?	R?
R??
R?
??	R?
R?
`??
??
??
????
?
???	R????
?????
??
?	R?	R?
??	R??
!??
??
???	R?
!?????
+??
+?
+?
+?????
3?
R???
??
???	??
???
??
+


C?
M

?
R	
&?


?

W?,

T?w??
logger/Lio/netty/util/internal/logging/InternalLogger;DEFAULT_NOT_BEFORELjava/util/Date;DEFAULT_NOT_AFTERDEFAULT_KEY_LENGTH_BITSIcertificateLjava/io/File;
privateKeycert$Ljava/security/cert/X509Certificate;keyLjava/security/PrivateKey;()VCodeLineNumberTableLocalVariableTablethis1Lio/netty/handler/ssl/util/SelfSignedCertificate;
Exceptions#(Ljava/util/Date;Ljava/util/Date;)V	notBeforenotAfter(Ljava/lang/String;)VfqdnLjava/lang/String;5(Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)V2(Ljava/lang/String;Ljava/security/SecureRandom;I)VrandomLjava/security/SecureRandom;bitsR(Ljava/lang/String;Ljava/security/SecureRandom;ILjava/util/Date;Ljava/util/Date;)VkeyGen Ljava/security/KeyPairGenerator;keypairLjava/security/KeyPair;e(Ljava/security/NoSuchAlgorithmException;paths[Ljava/lang/String;t2Ljava/lang/Throwable;tLjava/io/IOException;Ljava/lang/Exception;certificateInputLjava/io/FileInputStream;
StackMapTable
 ?!?????()Ljava/io/File;&()Ljava/security/cert/X509Certificate;()Ljava/security/PrivateKey;deletenewSelfSignedCertificatee(Ljava/lang/String;Ljava/security/PrivateKey;Ljava/security/cert/X509Certificate;)[Ljava/lang/String;keyText
encodedBufLio/netty/buffer/ByteBuf;certText
wrappedBufkeyFilekeyOutLjava/io/OutputStream;certFilecertOut"?#?$
safeDelete(Ljava/io/File;)V	safeClose'(Ljava/io/File;Ljava/io/OutputStream;)V
SourceFileSelfSignedCertificate.javacdedowexample.como}%&'fgo?opRSA()*+,-.&java/security/NoSuchAlgorithmExceptionjava/lang/Erroro/012java/lang/ThrowableabKFailed to generate a self-signed X.509 certificate using sun.security.x509:3456GFailed to generate a self-signed X.509 certificate using Bouncy Castle:'java/security/cert/CertificateException^No provider succeeded to generate a self-signed certificate. See debug log for the root cause.o5java/io/Fileozhiji!7?mnjava/io/FileInputStreamo?X5098)9:;"java/security/cert/X509Certificatekl<pjava/io/IOException=>java/lang/StringBuilderFailed to close a file: ?@?ABCD5java/lang/Exception/java/security/cert/CertificateEncodingException??"EFGHIJKL-----BEGIN PRIVATE KEY-----
MNO#BP
-----END PRIVATE KEY-----
Q>keyutil_?R.keySTUpjava/io/FileOutputStreamVW$XY??-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
.crtjava/lang/StringZC?>Failed to delete a file: Dz/io/netty/handler/ssl/util/SelfSignedCertificate[)\java/util/Date/io.netty.selfSignedCertificate.defaultNotBefore]^_`aboc.io.netty.selfSignedCertificate.defaultNotAfter/io.netty.handler.ssl.util.selfSignedKeyStrengthdejava/lang/Objectjava/security/SecureRandomjava/security/KeyPairjava/security/PrivateKeyio/netty/buffer/ByteBufjava/io/OutputStream3io/netty/handler/ssl/util/ThreadLocalInsecureRandomcurrent()Ljava/security/SecureRandom;java/security/KeyPairGeneratorgetInstance4(Ljava/lang/String;)Ljava/security/KeyPairGenerator;
initialize (ILjava/security/SecureRandom;)VgenerateKeyPair()Ljava/security/KeyPair;(Ljava/lang/Throwable;)V8io/netty/handler/ssl/util/OpenJdkSelfSignedCertGeneratorgeneratez(Ljava/lang/String;Ljava/security/KeyPair;Ljava/security/SecureRandom;Ljava/util/Date;Ljava/util/Date;)[Ljava/lang/String;-io/netty/util/internal/logging/InternalLoggerdebug*(Ljava/lang/String;Ljava/lang/Throwable;)V=io/netty/handler/ssl/util/BouncyCastleSelfSignedCertGenerator
getPrivate%java/security/cert/CertificateFactory;(Ljava/lang/String;)Ljava/security/cert/CertificateFactory;generateCertificate7(Ljava/io/InputStream;)Ljava/security/cert/Certificate;close
isWarnEnabled()Zappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;toString()Ljava/lang/String;warn
getEncoded()[Bio/netty/buffer/Unpooled
wrappedBuffer([B)Lio/netty/buffer/ByteBuf;$io/netty/handler/codec/base64/Base64encode5(Lio/netty/buffer/ByteBuf;Z)Lio/netty/buffer/ByteBuf;io/netty/util/CharsetUtilUS_ASCIILjava/nio/charset/Charset;.(Ljava/nio/charset/Charset;)Ljava/lang/String;release(C)Ljava/lang/StringBuilder;createTempFile4(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;deleteOnExitgetBytes(Ljava/nio/charset/Charset;)[Bwrite([B)VgetPath4io/netty/util/internal/logging/InternalLoggerFactoryB(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;java/lang/SystemcurrentTimeMillis()J)io/netty/util/internal/SystemPropertyUtilgetLong(Ljava/lang/String;J)J(J)VgetInt(Ljava/lang/String;I)I1R`abcdedfghijiklmnopq9*????r
W
XstuvowqK	*+,??r
`as 	tu	xd	ydvozqD*+????r
ijstu{|vo}qZ*+??,-??r
v
ws*tu{|xdydvo~qZ*+,????r
?
?s*tu{|??gvo?q?A*?	
?:,??
:?:?Y??+,?:?;:??+,?:?:	?	??Y	??*?Y2??*?Y2??*?? :?!Y*??":*#?$?%?&?'???(?~:	??*?#??+Y?,-?.*??/?0	?1?N:	?3Y	?4?:
?8?(?0:??*?#??+Y?,-?.*??/?0?1
??(58FSV???)???2??
)?r?'???????(?5?8?:?F?S?V?X?d?p??????????????????????????????
????=?@?s?????
??5??S??X??	:6???+??	?
??	+??AtuA{|A?A?gAxdAyd(??p??????????????????O??	?????????????????T	?????????,B?K????????????,?vh?q/*??r?stuj?q/*??r?stuk?q/*?'?r?stum?q/*? ?r?stu?pqA*??5*??5?r???stu??qp?+?6?7N-?8:?+Y?,9?.?:?;?.?.*?._???0@?A:?B?CY?D:?:?E?F?G:?(?H?5?:??H?5?,?I?7N-?8:?+Y?,J?.?:?;?.K?.?0:?=W?:	?=W	?-?=W?
:
-?=W
??+Y?,>?.*?._???0L?A:		?B?CY	?D:

?:?E?F
?G:

?2	
?H	?5?5?:
?	
?H	?5?5??MY	?NSY?NS?2;;=;
FNNPN????????????
K`yy{yr?5?
??"?2?8?;?C?F?K?N?U?X?w?|????????????????????
;@KX]`!e"l#q$y!?"?#?$?&?(s?2	?|=??F?|?	?|
?|?{|?mn?kl
???XQ??XQ?|w2?i?"????|;n?i	K^??
???;???????
????????	???W????????????x??
????????????	??\???????????????v)3
??qm.*?O?)??*???+Y?,P?.*?/?0?Q?r,-.-1s.?i?-
??q?0+?G?+M??*???+Y?,-?.*?/?0,?1?)r5:678/;s '??0?i0???G?'?pqp<R?S??TYU?VWe?Y?Z??TY[\?Y?Z?^?_??r"=@A@C0K5L;K??




© 2015 - 2025 Weber Informatics LLC | Privacy Policy