META-INF.modules.java.base.classes.sun.security.tools.keytool.Main.class Maven / Gradle / Ivy
???? 8?
f? ?? ?? ?? ?? ?? ?? ?? ?? Z ?? ?? ?? ?? ? ? ? ? ? ? ? ? ? ? ?
? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?! ?"#
3? ?$ ?%&
7? ?' ?( ?) ?* ?+ ?,-
?? ./
?0
?1
?2
?3?4?5?6r
78
?9:;
M? ?<=
i>
M?
M@
MA
-B
LC
.DE
?F GH
?I?J
?KL
?MNOPQRST
?U?V?V ?WX
BY
?Z
O[\ O]
L^_
OA
O`
ab
7c ijkl
7m
Ln
LA Lo
?p
?q
?rstuvwxy
?^
?z
a{ .|}~??
????
a?????????????????
???????
????????
3?
???????????
??
??? O? O???
?^?
??
a???
(U
-? O? O???
?^??????? ??? ??
a????
.?
???
???
??
??
a?????
??
L? O?? O???? ??? O?
??
??
??
??
????
??? O? O? O? O? O?? O? O??
???? O??
??
???
?
?
?
?
?
O O
-
- .
7
(^
(
a
.^
-
?!
-9"
3#$%
?& O'
?()*+
?,-
?./
?^
?012
?4
?567
?89
?;<=
?>?@
?A
?B
?CD
?E
?F
?G
?H
?I OJ
?K OL
?M
?N
?OPQ
?RS
c?
cT
.U
.9VW
?X
YZ
74[\]^
?_
?`a
sbc
sdef
wdg
?hi
|?
|j ? <
|kl
?m
?no
?p
)q
)r
w?
s
t_
wuvwx
??
?y???
??z{
??|}
?~ ?
??
???
??
????
???
??
??
???
?b?
??X?
??
??:
??
z^
??
???4?
?? ??
?M
???
??
???
s?
s?
??
???
a??
???
???
|???????
????
??
?u??
?^
??
???
??
??? ??
??
??
???
-U?
???
??
??
??
)?
??}A
??
???
?????????
.???? G?
??
T??
??
?
T??S?
U???
U?
U??
??
??
???
??
?
??
???? ??? ?? ???
????
#?
??
#?
#?
#?
#
#
?
?
?
1?
A
?
?
?
?
? ? 3
M
?
?A ! "
? # $ % & ' (
? )
?M * + , - .
? / 0
? 1 2 3 4
? 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?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
Y
?
?
?
?
7
?
?
?
T
9
?
?
?
?
?
?
b
?
?
D
?
?
?
?
?
? ? ?
??
?
?
? O
?
? O
? L
?
?
?
?
?
?
?
O
?
?
?
?
?
a
?
?
?^
?
?
?
?
Y
?
?
O
?
?
?
?
?
i
?
B
?
?
B
?
?
?
?
?
?
?
?
?
? Option InnerClasses
? Command CRLF [B debug Z command )Lsun/security/tools/keytool/Main$Command;
sigAlgName Ljava/lang/String;
keyAlgName verbose keysize I groupName rfc validity J alias dname dest filename
infilename outfilename
srcksfname providers Ljava/util/Set; Signature XLjava/util/Set;>; providerClasses storetype srcProviderName providerName pathlist storePass [C storePassNew keyPass
keyPassNew newPass destKeyPass
srckeyPass ksfname ksfile Ljava/io/File; ksStream Ljava/io/InputStream; sslserver jarfile keyStore Ljava/security/KeyStore; token
nullStream kssave noprompt trustcacerts
protectedPath srcprotectedPath cacerts nowarn caks srcstorePass srcstoretype passwords Ljava/util/Set<[C>; startDate ids Ljava/util/List; $Ljava/util/List; v3ext
inplaceImport inplaceBackupName weakWarnings DISABLED_CHECK 0Lsun/security/util/DisabledAlgorithmConstraints; SIG_PRIMITIVE_SET 0Ljava/util/Set; isPasswordlessKeyStore NONE
ConstantValue P11KEYSTORE P12KEYSTORE keyAlias rb Ljava/util/ResourceBundle; collator Ljava/text/Collator; extSupported [Ljava/lang/String; ()V Code LineNumberTable LocalVariableTable this !Lsun/security/tools/keytool/Main; main ([Ljava/lang/String;)V args kt
Exceptions run +([Ljava/lang/String;Ljava/io/PrintStream;)V pass e Ljava/lang/Exception; out Ljava/io/PrintStream;
StackMapTable
? parseArgs (([Ljava/lang/String;)[Ljava/lang/String; c
lowerFlags flags option (Lsun/security/tools/keytool/Main$Option;
providerClass providerArg provider modifier pos i help confFile
optionsSet LocalVariableTypeTable #Ljava/util/Set;
?
? isKeyStoreRelated ,(Lsun/security/tools/keytool/Main$Command;)Z cmd
doCommands (Ljava/io/PrintStream;)V $Ljava/lang/IllegalArgumentException; !Lsun/security/tools/keytool/Pair; path urls [Ljava/net/URL; cce Ljava/lang/ClassCastException; cl Ljava/lang/ClassLoader; Ljava/io/FileNotFoundException; storePassAgain count source [Ljava/lang/Object; form Ljava/text/MessageFormat; ps inStream importAlias fout Ljava/io/FileOutputStream; bout Ljava/io/ByteArrayOutputStream; a allCerts realSourceStoreType format realType f srcKeyStore GLsun/security/tools/keytool/Pair;
?
?
?? doGenCert Q(Ljava/lang/String;Ljava/lang/String;Ljava/io/InputStream;Ljava/io/PrintStream;)V s attr %Lsun/security/pkcs10/PKCS10Attribute; xca $Ljava/security/cert/X509Certificate; ca Ljava/security/cert/Certificate; in
signerCert encoded signerCertImpl Lsun/security/x509/X509CertImpl; signerCertInfo Lsun/security/x509/X509CertInfo; issuer Lsun/security/x509/X500Name; firstDate Ljava/util/Date; lastDate interval 'Lsun/security/x509/CertificateValidity;
privateKey Ljava/security/PrivateKey; signature Ljava/security/Signature; info params +Ljava/security/spec/AlgorithmParameterSpec; algID Lsun/security/x509/AlgorithmId; reader Ljava/io/BufferedReader; canRead sb Ljava/lang/StringBuffer; rawReq req Lsun/security/pkcs10/PKCS10; reqex )Lsun/security/x509/CertificateExtensions; attrs Ljava/util/Iterator; ext cert ;Ljava/util/Iterator;R
?
? doGenCRL !Lsun/security/x509/CRLExtensions; id d owner badCerts "[Ljava/security/cert/X509CRLEntry; crl Lsun/security/x509/X509CRLImpl;1 doCertReq <(Ljava/lang/String;Ljava/lang/String;Ljava/io/PrintStream;)V objs privKey request subject 8Lsun/security/tools/keytool/Pair;
doDeleteEntry (Ljava/lang/String;)V doExportCert *(Ljava/lang/String;Ljava/io/PrintStream;)V promptForKeyPass *(Ljava/lang/String;Ljava/lang/String;[C)[C src passAgain entered orig origPass promptForCredential ()[C
importPass doGenSecretKey ((Ljava/lang/String;Ljava/lang/String;I)V factory Ljavax/crypto/SecretKeyFactory; keygen Ljavax/crypto/KeyGenerator; useDefaultPBEAlgorithm secKey Ljavax/crypto/SecretKey;
?
?
? getCompatibleSigAlgName .(Ljava/security/PrivateKey;)Ljava/lang/String; key result doGenKeyPair ^(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V x500Name keypair *Lsun/security/tools/keytool/CertAndKeyGen; chain %[Ljava/security/cert/X509Certificate;` ecGroupNameForSize (I)Ljava/lang/String; size ap #Ljava/security/AlgorithmParameters; doCloneEntry ((Ljava/lang/String;Ljava/lang/String;Z)V changePassword entry Entry Ljava/security/KeyStore$Entry; pp PasswordProtection +Ljava/security/KeyStore$PasswordProtection; CLsun/security/tools/keytool/Pair; doChangeKeyPasswd Ljava/security/Key; doImportIdentityDatabase (Ljava/io/InputStream;)V doPrintEntry ![Ljava/security/cert/Certificate; mf label inplaceImportCheck ()Z srcksfile loadSourceKeyStore ()Ljava/security/KeyStore; store is srcIsPasswordless doImportKeyStore (Ljava/security/KeyStore;)V bkFile n srcKS
? doImportKeyStoreSingle -(Ljava/security/KeyStore;Ljava/lang/String;)I reply source2 kse !Ljava/security/KeyStoreException; srckeystore newAlias doImportKeyStoreAll Ljava/util/Enumeration; ok +Ljava/util/Enumeration;
? doPrintEntries e2i -(Ljava/util/Enumeration;)Ljava/lang/Iterable; Ljava/util/Enumeration; M(Ljava/util/Enumeration;)Ljava/lang/Iterable; loadCRLs *(Ljava/lang/String;)Ljava/util/Collection; e2 len b +Ljava/security/cert/URICertStoreParameters; Ljava/security/cert/CertStore; uri Ljava/net/URI;
? E(Ljava/lang/String;)Ljava/util/Collection<+Ljava/security/cert/CRL;>; readCRLsFromCert 6(Ljava/security/cert/X509Certificate;)Ljava/util/List; Ljava/security/cert/CRL; uriName Lsun/security/x509/URIName; name Lsun/security/x509/GeneralName; names Lsun/security/x509/GeneralNames; o %Lsun/security/x509/DistributionPoint; crls 2Lsun/security/x509/CRLDistributionPointsExtension;
distPoints *Ljava/util/List; 7Ljava/util/List;
? P(Ljava/security/cert/X509Certificate;)Ljava/util/List; verifyCRL D(Ljava/security/KeyStore;Ljava/security/cert/CRL;)Ljava/lang/String; xcert ks xcrl (Ljavax/security/auth/x500/X500Principal;
?
doPrintCRL signer printCRL 0(Ljava/security/cert/CRL;Ljava/io/PrintStream;)V x509crl Ljava/security/cert/X509CRL; doPrintCertReq -(Ljava/io/InputStream;Ljava/io/PrintStream;)V exts pkcs9Attr "Lsun/security/pkcs/PKCS9Attribute; attrVal Ljava/lang/Object; oid $Lsun/security/util/ObjectIdentifier; started pkey Ljava/security/PublicKey;
? printCertFromStream ce )Ljava/security/cert/CertificateException; x509Cert Ljava/util/Collection; certs 9Ljava/util/Collection<+Ljava/security/cert/Certificate;>; generateCertificates -(Ljava/io/InputStream;)Ljava/util/Collection; data P(Ljava/io/InputStream;)Ljava/util/Collection<+Ljava/security/cert/Certificate;>; generateCertificate 7(Ljava/io/InputStream;)Ljava/security/cert/Certificate; oneInMany ((Ljava/lang/String;II)Ljava/lang/String; num doPrintCert x cc ts Ljava/security/Timestamp; Ljava/security/CodeSigner; je Ljava/util/jar/JarEntry; signers [Ljava/security/CodeSigner; jf Ljava/util/jar/JarFile; entries ss buffer cse 'Ljava/security/cert/CertStoreException; cs Ljava/io/FileInputStream; 3Ljava/util/List<+Ljava/security/cert/Certificate;>; 1Ljava/util/Enumeration; +Ljava/util/Set;?
?
?
? doChangeStorePasswd
doSelfCert 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V oldCert certImpl certInfo newCert sigAlgid installReply *(Ljava/lang/String;Ljava/io/InputStream;)Z newChain userCert
replyCerts addTrustedCert
selfSigned
trustalias getNewPasswd (Ljava/lang/String;[C)[C prompt oldPasswd reentered getAlias &(Ljava/lang/String;)Ljava/lang/String; inputStringFromStdin getKeyPasswd
otherAlias otherKeyPass withWeak alg fullDisplayAlgName '(Ljava/security/Key;)Ljava/lang/String; paramSpec $Ljava/security/spec/ECParameterSpec; kLen
displayAlg
printX509Cert <(Ljava/security/cert/X509Certificate;Ljava/io/PrintStream;)V impl sigName printExtensions S(Ljava/lang/String;Lsun/security/x509/CertificateExtensions;Ljava/io/PrintStream;)V v Lsun/security/x509/Extension; title extnum i1 i2 3Ljava/util/Iterator; getSigner [(Ljava/security/cert/Certificate;Ljava/security/KeyStore;)Lsun/security/tools/keytool/Pair; trustedCert aliases ?(Ljava/security/cert/Certificate;Ljava/security/KeyStore;)Lsun/security/tools/keytool/Pair; getX500Name ()Lsun/security/x509/X500Name;
commonName organizationalUnit organization city state country userInput maxRetry inputString P(Ljava/io/BufferedReader;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; defaultValue value dumpCert 8(Ljava/security/cert/Certificate;Ljava/io/PrintStream;)V byte2hex (BLjava/lang/StringBuffer;)V B buf hexChars high low toHexString ([B)Ljava/lang/String; block
recoverKey 9(Ljava/lang/String;[C[C)Lsun/security/tools/keytool/Pair; )Ljava/security/UnrecoverableKeyException; P(Ljava/lang/String;[C[C)Lsun/security/tools/keytool/Pair; recoverEntry Q(Ljava/security/KeyStore;Ljava/lang/String;[C[C)Lsun/security/tools/keytool/Pair; une +Ljava/security/UnrecoverableEntryException; pstore s(Ljava/security/KeyStore;Ljava/lang/String;[C[C)Lsun/security/tools/keytool/Pair; getCertFingerPrint F(Ljava/lang/String;Ljava/security/cert/Certificate;)Ljava/lang/String; mdAlg encCertInfo md Ljava/security/MessageDigest; digest printNoIntegrityWarning
validateReply v(Ljava/lang/String;Ljava/security/cert/Certificate;[Ljava/security/cert/Certificate;)[Ljava/security/cert/Certificate; j tmpCerts
userPubKey nodup Ljava/util/HashSet; tmpCert thisCert topCert fromKeyStore root 5Ljava/util/HashSet; ULsun/security/tools/keytool/Pair;
? establishCertChain c(Ljava/security/cert/Certificate;Ljava/security/cert/Certificate;)[Ljava/security/cert/Certificate;
origPubKey replyPubKey p certToVerify Ljava/util/Hashtable; Ljava/util/Vector; YLsun/security/tools/keytool/Pair; ?Ljava/util/Hashtable;>;>; mLjava/util/Vector;>;
buildChain K(Lsun/security/tools/keytool/Pair;Ljava/util/Vector;Ljava/util/Hashtable;)Z
issuerCert issuerPubKey issuerCerts Ljava/security/Principal; vec rLjava/util/Enumeration;>;
?f(Lsun/security/tools/keytool/Pair;Ljava/util/Vector;>;Ljava/util/Hashtable;>;>;)Z
getYesNoReply keystorecerts2Hashtable 0(Ljava/security/KeyStore;Ljava/util/Hashtable;)V subjectDN pair hash ?(Ljava/security/KeyStore;Ljava/util/Hashtable;>;>;)V getStartDate $(Ljava/lang/String;)Ljava/util/Date; ch C sign number unit start date time ioe Ljava/io/IOException; Ljava/util/Calendar; oneOf ((Ljava/lang/String;[Ljava/lang/String;)I Ljava/lang/StringBuilder; first one list match [I nmatch
experiment? createGeneralName E(Ljava/lang/String;Ljava/lang/String;)Lsun/security/x509/GeneralName; gn (Lsun/security/x509/GeneralNameInterface; t findOidForExtName 8(Ljava/lang/String;)Lsun/security/util/ObjectIdentifier; type setExt I(Lsun/security/x509/CertificateExtensions;Lsun/security/x509/Extension;)V ex createV3Extensions ?(Lsun/security/x509/CertificateExtensions;Lsun/security/x509/CertificateExtensions;Ljava/util/List;Ljava/security/PublicKey;Ljava/security/PublicKey;)Lsun/security/x509/CertificateExtensions; add colonpos action item extstr request2 nv part ufe !Ljava/lang/NumberFormatException; pathLen isCA [Z kue %Lsun/security/x509/KeyUsageExtension; gnames colonpos2 m accessDescriptions hex
isCritical eqpos exttype requestedEx
existingEx extstrs akey 8Ljava/util/Vector; 7Ljava/util/List;? ?(Lsun/security/x509/CertificateExtensions;Lsun/security/x509/CertificateExtensions;Ljava/util/List;Ljava/security/PublicKey;Ljava/security/PublicKey;)Lsun/security/x509/CertificateExtensions;
isTrustedCert #(Ljava/security/cert/Certificate;)Z inKS checkWeak :(Ljava/lang/String;Ljava/lang/String;Ljava/security/Key;)V sigAlg 6(Ljava/lang/String;[Ljava/security/cert/Certificate;)V xc fullLabel 5(Ljava/lang/String;Ljava/security/cert/Certificate;)V 1(Ljava/lang/String;Lsun/security/pkcs10/PKCS10;)V p10 @(Ljava/lang/String;Ljava/security/cert/CRL;Ljava/security/Key;)V printWeakWarnings (Z)V warning newLine usage opt lefts s1 s2 rights left right lenLeft
? tinyHelp errorNeedArgument flag getPass ((Ljava/lang/String;Ljava/lang/String;)[C arg output lambda$parseArgs$0 (Ljava/lang/String;)Z
SourceFile Main.java NestMembers
???STUVWXYXZT[\]X^T_`aXbXcXdXeXfXgXhilimXnXoXpXqrsrtrurvrwrxryXz{|}~XX???T?T?T?T?T?T?T?T?T???r?X java/util/HashSet?i?X java/util/ArrayList?????T?X???T sun/security/tools/keytool/Main
??????????? z? java/lang/Exception java/lang/StringBuilder?? keytool.error.
=? -? -ext -id -provider -addprovider -providerclass -providerarg option.1.set.twice java/lang/Object???? -conf ?=!" multiple.commands.1.2?X?= keytool#$%&'( BootstrapMethods)*?+,-./ Command line args:
012?X345c56 --help -h -? -help -nowarn -keystore java/io/File789? warning.cacerts.option
-destkeystore -cacerts
-storepass -deststorepass??
-storetype -deststoretype:
-srcstorepass
-srcstoretype -srckeypass -srcprovidername
-providername -destprovidername
-providerpath -keypass -new -destkeypass -alias -srcalias -dest
-destalias -dname -keysize;<
-groupname -keyalg -sigalg
-startdate -validity=>? -file -infile -outfile
-sslserver -jarfile -srckeystore?@A -v -debug -rfc -noprompt
-trustcacerts
-protected -destprotected
-srcprotected Illegal.option.???? Usage.error.no.command.providedBVCV "java/lang/IllegalArgumentException Gthe.keystore.or.storetype.option.cannot.be.used.with.the.cacerts.option PKCS11D?E? *.keystore.must.be.NONE.if.storetype.is.{0}?FVGV 'java/lang/UnsupportedOperationException E.storepasswd.and.keypasswd.commands.not.supported.if.storetype.is.{0} 9.keypass.and.new.can.not.be.specified.if.storetype.is.{0} Nif.protected.is.specified.then.storepass.keypass.and.new.must.not.be.specified Sif.srcprotected.is.specified.then.srcstorepass.and.srckeypass.must.not.be.specified Zif.keystore.is.not.password.protected.then.storepass.keypass.and.new.must.not.be.specified cif.source.keystore.is.not.password.protected.then.srcstorepass.and.srckeypass.must.not.be.specified "Validity.must.be.greater.than.zero sun/security/tools/keytool/PairH? java/lang/StringI?JK loadProviderByName: provider.name.not.found java.class.pathLMNO env.class.pathPQ java/net/URLClassLoader?RSTUV loadProviderByClass: java/lang/ClassCastException provclass.not.a.provider provider.class.not.foundWX?YZV 1Must.not.specify.both.v.and.rfc.with.list.command[V *Key.password.must.be.at.least.6.characters *New.password.must.be.at.least.6.characters user.home\X .keystore]Vyz|}??^z_` "Keystore.file.exists.but.is.empty. java/io/FileInputStream?a java/io/FileNotFoundExceptionbVcVdVeVfV Keystore.file.does.not.exist.gVhV destination Must.specify.destination.aliasiV Must.specify.aliasjkl pkcs12mnopjqjr 'keystore.pkcs12.certProtectionAlgorithmst keystore.pkcs12.macAlgorithmuv PKCS12 8.keypasswd.commands.not.supported.if.storetype.is.PKCS12 /Keystore.password.must.be.at.least.6.characterswVxV $Enter.destination.keystore.password.y= Enter.keystore.password.z?}{|}