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

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

There is a newer version: 129
Show newest version
????2L/io/netty/handler/ssl/util/SelfSignedCertificatejava/lang/ObjectSelfSignedCertificate.javalogger/Lio/netty/util/internal/logging/InternalLogger;DEFAULT_NOT_BEFORELjava/util/Date;DEFAULT_NOT_AFTERcertificateLjava/io/File;
privateKeycert$Ljava/security/cert/X509Certificate;keyLjava/security/PrivateKey;()V'java/security/cert/CertificateException		
		#(Ljava/util/Date;Ljava/util/Date;)V
this1Lio/netty/handler/ssl/util/SelfSignedCertificate;example.com5(Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;)V!
"	notBeforenotAfter(Ljava/lang/String;)VfqdnLjava/lang/String;3io/netty/handler/ssl/util/ThreadLocalInsecureRandom)current()Ljava/security/SecureRandom;+,
*-R(Ljava/lang/String;Ljava/security/SecureRandom;ILjava/util/Date;Ljava/util/Date;)V/
02(Ljava/lang/String;Ljava/security/SecureRandom;I)VrandomLjava/security/SecureRandom;bitsI&java/security/NoSuchAlgorithmException7java/lang/Throwable9java/io/IOException;java/lang/Exception=
?RSAAjava/security/KeyPairGeneratorCgetInstance4(Ljava/lang/String;)Ljava/security/KeyPairGenerator;EF
DG
initialize (ILjava/security/SecureRandom;)VIJ
DKgenerateKeyPair()Ljava/security/KeyPair;MN
DOjava/lang/StringQjava/security/SecureRandomSjava/util/DateUjava/lang/ErrorW(Ljava/lang/Throwable;)VY
XZjava/security/KeyPair\8io/netty/handler/ssl/util/OpenJdkSelfSignedCertGenerator^generatez(Ljava/lang/String;Ljava/security/KeyPair;Ljava/security/SecureRandom;Ljava/util/Date;Ljava/util/Date;)[Ljava/lang/String;`a
_b	dKFailed to generate a self-signed X.509 certificate using sun.security.x509:f-io/netty/util/internal/logging/InternalLoggerhdebug*(Ljava/lang/String;Ljava/lang/Throwable;)Vjkil=io/netty/handler/ssl/util/BouncyCastleSelfSignedCertGeneratorn
obGFailed to generate a self-signed X.509 certificate using Bouncy Castle:q^No provider succeeded to generate a self-signed certificate. See debug log for the root cause.sk
u[Ljava/lang/String;wjava/io/Filey&
z{	}
	
getPrivate()Ljava/security/PrivateKey;??
]?	?java/io/FileInputStream?(Ljava/io/File;)V?
??X509?%java/security/cert/CertificateFactory?;(Ljava/lang/String;)Ljava/security/cert/CertificateFactory;E?
??generateCertificate7(Ljava/io/InputStream;)Ljava/security/cert/Certificate;??
??"java/security/cert/X509Certificate?	?close?
??java/lang/StringBuilder?
??Failed to close a file: ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??toString()Ljava/lang/String;??
??warn?ki?/java/security/cert/CertificateEncodingException?
?ZkeyGen Ljava/security/KeyPairGenerator;keypairLjava/security/KeyPair;e(Ljava/security/NoSuchAlgorithmException;pathst2Ljava/lang/Throwable;tLjava/io/IOException;Ljava/lang/Exception;certificateInputLjava/io/FileInputStream;()Ljava/io/File;&()Ljava/security/cert/X509Certificate;delete
safeDelete??
?newSelfSignedCertificatee(Ljava/lang/String;Ljava/security/PrivateKey;Ljava/security/cert/X509Certificate;)[Ljava/lang/String;java/security/PrivateKey?
getEncoded()[B????io/netty/buffer/Unpooled?
wrappedBuffer([B)Lio/netty/buffer/ByteBuf;??
??$io/netty/handler/codec/base64/Base64?encode5(Lio/netty/buffer/ByteBuf;Z)Lio/netty/buffer/ByteBuf;??
??-----BEGIN PRIVATE KEY-----
?io/netty/util/CharsetUtil?US_ASCIILjava/nio/charset/Charset;??	??io/netty/buffer/ByteBuf?.(Ljava/nio/charset/Charset;)Ljava/lang/String;??
??
-----END PRIVATE KEY-----
?release()Z??
??keyutil_?(C)Ljava/lang/StringBuilder;??
??.key?createTempFile4(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;??
z?deleteOnExit?
z?java/io/FileOutputStream?
??getBytes(Ljava/nio/charset/Charset;)[B
Rjava/io/OutputStreamwrite([B)V

?	safeClose'(Ljava/io/File;Ljava/io/OutputStream;)V

??-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
.crtgetPath?
zkeyText
encodedBufLio/netty/buffer/ByteBuf;certText
wrappedBufkeyFilekeyOutLjava/io/OutputStream;certFilecertOut??
z#Failed to delete a file: %?&i'4io/netty/util/internal/logging/InternalLoggerFactory*B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;E,
+-/io.netty.selfSignedCertificate.defaultNotBefore/java/lang/System1currentTimeMillis()J34
25W?,)io/netty/util/internal/SystemPropertyUtil9getLong(Ljava/lang/String;J)J;<
:=(J)V?
V@.io.netty.selfSignedCertificate.defaultNotAfterB?w??CodeLocalVariableTableLineNumberTable
Exceptions
StackMapTable
SourceFile1	
	
F9*????GH
O
PIFK	* +,?#?G 		$		%	H
XYI&FD*+???#?G'(H
abI!FZ*+?.,-?1?G*'($	%	H
n
oI2FZ*+,???1?G*'(3456H
y
zI/F?+*?@B?H:,?L?P:?:?XY?[?+,?c:?;:?eg?m+,?p:?:	?er	?m?Yt	?v?*?zY2?|?~*?zY2?|??*????:??Y*?~??:*??????????p???h:	?e??Y?????*?~????	???C:	??Y	???:
?-???%:?e??Y?????*?~??????
??8(58:FSV:???<???>????<???G?????
??5?wS?wX??	:6??? ??	?
??	 ??++'(+34+56+$	+%	(??p??w????H?%???????(?5?8?:?F?S?V?X?d?p?????????????????????????????????'?*?J??RTVV8?]O:?	RTVV]::?RTVVx]?T	RTVVx]?K:?RTVVx]?:n!	N^" 
H?/?
??"?2?8?;?F?K?N?X?w?|??????????????????????????	>CN[`chot|????J??;R????:?
R?R???:?	?R?WR????Rz:?:?z:?
R?R????Rz:?	R?]R????RzRz:?:?I<?
??F_$*?$??e??Y??&??*?????(?G$!H"##%J#
F?%+?
? M?e??Y?????*????,???<G ??%% H),*+$-JG<)F[3?.?e?VY0?67e?>?A??VYCD?>?A??H=@A@CK




© 2015 - 2025 Weber Informatics LLC | Privacy Policy