Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/sun/security/tools/keytool/Resources.java
38923 views
/*1* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package sun.security.tools.keytool;2627/**28* <p> This class represents the <code>ResourceBundle</code>29* for the keytool.30*31*/32public class Resources extends java.util.ListResourceBundle {3334private static final Object[][] contents = {35{"NEWLINE", "\n"},36{"STAR",37"*******************************************"},38{"STARNN",39"*******************************************\n\n"},4041// keytool: Help part42{".OPTION.", " [OPTION]..."},43{"Options.", "Options:"},44{"Use.keytool.help.for.all.available.commands",45"Use \"keytool -help\" for all available commands"},46{"Key.and.Certificate.Management.Tool",47"Key and Certificate Management Tool"},48{"Commands.", "Commands:"},49{"Use.keytool.command.name.help.for.usage.of.command.name",50"Use \"keytool -command_name -help\" for usage of command_name"},51// keytool: help: commands52{"Generates.a.certificate.request",53"Generates a certificate request"}, //-certreq54{"Changes.an.entry.s.alias",55"Changes an entry's alias"}, //-changealias56{"Deletes.an.entry",57"Deletes an entry"}, //-delete58{"Exports.certificate",59"Exports certificate"}, //-exportcert60{"Generates.a.key.pair",61"Generates a key pair"}, //-genkeypair62{"Generates.a.secret.key",63"Generates a secret key"}, //-genseckey64{"Generates.certificate.from.a.certificate.request",65"Generates certificate from a certificate request"}, //-gencert66{"Generates.CRL", "Generates CRL"}, //-gencrl67{"Generated.keyAlgName.secret.key",68"Generated {0} secret key"}, //-genseckey69{"Generated.keysize.bit.keyAlgName.secret.key",70"Generated {0}-bit {1} secret key"}, //-genseckey71{"Imports.entries.from.a.JDK.1.1.x.style.identity.database",72"Imports entries from a JDK 1.1.x-style identity database"}, //-identitydb73{"Imports.a.certificate.or.a.certificate.chain",74"Imports a certificate or a certificate chain"}, //-importcert75{"Imports.a.password",76"Imports a password"}, //-importpass77{"Imports.one.or.all.entries.from.another.keystore",78"Imports one or all entries from another keystore"}, //-importkeystore79{"Clones.a.key.entry",80"Clones a key entry"}, //-keyclone81{"Changes.the.key.password.of.an.entry",82"Changes the key password of an entry"}, //-keypasswd83{"Lists.entries.in.a.keystore",84"Lists entries in a keystore"}, //-list85{"Prints.the.content.of.a.certificate",86"Prints the content of a certificate"}, //-printcert87{"Prints.the.content.of.a.certificate.request",88"Prints the content of a certificate request"}, //-printcertreq89{"Prints.the.content.of.a.CRL.file",90"Prints the content of a CRL file"}, //-printcrl91{"Generates.a.self.signed.certificate",92"Generates a self-signed certificate"}, //-selfcert93{"Changes.the.store.password.of.a.keystore",94"Changes the store password of a keystore"}, //-storepasswd95// keytool: help: options96{"alias.name.of.the.entry.to.process",97"alias name of the entry to process"}, //-alias98{"destination.alias",99"destination alias"}, //-destalias100{"destination.key.password",101"destination key password"}, //-destkeypass102{"destination.keystore.name",103"destination keystore name"}, //-destkeystore104{"destination.keystore.password.protected",105"destination keystore password protected"}, //-destprotected106{"destination.keystore.provider.name",107"destination keystore provider name"}, //-destprovidername108{"destination.keystore.password",109"destination keystore password"}, //-deststorepass110{"destination.keystore.type",111"destination keystore type"}, //-deststoretype112{"distinguished.name",113"distinguished name"}, //-dname114{"X.509.extension",115"X.509 extension"}, //-ext116{"output.file.name",117"output file name"}, //-file and -outfile118{"input.file.name",119"input file name"}, //-file and -infile120{"key.algorithm.name",121"key algorithm name"}, //-keyalg122{"key.password",123"key password"}, //-keypass124{"key.bit.size",125"key bit size"}, //-keysize126{"keystore.name",127"keystore name"}, //-keystore128{"new.password",129"new password"}, //-new130{"do.not.prompt",131"do not prompt"}, //-noprompt132{"password.through.protected.mechanism",133"password through protected mechanism"}, //-protected134{"provider.argument",135"provider argument"}, //-providerarg136{"provider.class.name",137"provider class name"}, //-providerclass138{"provider.name",139"provider name"}, //-providername140{"provider.classpath",141"provider classpath"}, //-providerpath142{"output.in.RFC.style",143"output in RFC style"}, //-rfc144{"signature.algorithm.name",145"signature algorithm name"}, //-sigalg146{"source.alias",147"source alias"}, //-srcalias148{"source.key.password",149"source key password"}, //-srckeypass150{"source.keystore.name",151"source keystore name"}, //-srckeystore152{"source.keystore.password.protected",153"source keystore password protected"}, //-srcprotected154{"source.keystore.provider.name",155"source keystore provider name"}, //-srcprovidername156{"source.keystore.password",157"source keystore password"}, //-srcstorepass158{"source.keystore.type",159"source keystore type"}, //-srcstoretype160{"SSL.server.host.and.port",161"SSL server host and port"}, //-sslserver162{"signed.jar.file",163"signed jar file"}, //=jarfile164{"certificate.validity.start.date.time",165"certificate validity start date/time"}, //-startdate166{"keystore.password",167"keystore password"}, //-storepass168{"keystore.type",169"keystore type"}, //-storetype170{"trust.certificates.from.cacerts",171"trust certificates from cacerts"}, //-trustcacerts172{"verbose.output",173"verbose output"}, //-v174{"validity.number.of.days",175"validity number of days"}, //-validity176{"Serial.ID.of.cert.to.revoke",177"Serial ID of cert to revoke"}, //-id178// keytool: Running part179{"keytool.error.", "keytool error: "},180{"Illegal.option.", "Illegal option: "},181{"Illegal.value.", "Illegal value: "},182{"Unknown.password.type.", "Unknown password type: "},183{"Cannot.find.environment.variable.",184"Cannot find environment variable: "},185{"Cannot.find.file.", "Cannot find file: "},186{"Command.option.flag.needs.an.argument.", "Command option {0} needs an argument."},187{"Warning.Different.store.and.key.passwords.not.supported.for.PKCS12.KeyStores.Ignoring.user.specified.command.value.",188"Warning: Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified {0} value."},189{".keystore.must.be.NONE.if.storetype.is.{0}",190"-keystore must be NONE if -storetype is {0}"},191{"Too.many.retries.program.terminated",192"Too many retries, program terminated"},193{".storepasswd.and.keypasswd.commands.not.supported.if.storetype.is.{0}",194"-storepasswd and -keypasswd commands not supported if -storetype is {0}"},195{".keypasswd.commands.not.supported.if.storetype.is.PKCS12",196"-keypasswd commands not supported if -storetype is PKCS12"},197{".keypass.and.new.can.not.be.specified.if.storetype.is.{0}",198"-keypass and -new can not be specified if -storetype is {0}"},199{"if.protected.is.specified.then.storepass.keypass.and.new.must.not.be.specified",200"if -protected is specified, then -storepass, -keypass, and -new must not be specified"},201{"if.srcprotected.is.specified.then.srcstorepass.and.srckeypass.must.not.be.specified",202"if -srcprotected is specified, then -srcstorepass and -srckeypass must not be specified"},203{"if.keystore.is.not.password.protected.then.storepass.keypass.and.new.must.not.be.specified",204"if keystore is not password protected, then -storepass, -keypass, and -new must not be specified"},205{"if.source.keystore.is.not.password.protected.then.srcstorepass.and.srckeypass.must.not.be.specified",206"if source keystore is not password protected, then -srcstorepass and -srckeypass must not be specified"},207{"Illegal.startdate.value", "Illegal startdate value"},208{"Validity.must.be.greater.than.zero",209"Validity must be greater than zero"},210{"provName.not.a.provider", "{0} not a provider"},211{"Usage.error.no.command.provided", "Usage error: no command provided"},212{"Source.keystore.file.exists.but.is.empty.", "Source keystore file exists, but is empty: "},213{"Please.specify.srckeystore", "Please specify -srckeystore"},214{"Must.not.specify.both.v.and.rfc.with.list.command",215"Must not specify both -v and -rfc with 'list' command"},216{"Key.password.must.be.at.least.6.characters",217"Key password must be at least 6 characters"},218{"New.password.must.be.at.least.6.characters",219"New password must be at least 6 characters"},220{"Keystore.file.exists.but.is.empty.",221"Keystore file exists, but is empty: "},222{"Keystore.file.does.not.exist.",223"Keystore file does not exist: "},224{"Must.specify.destination.alias", "Must specify destination alias"},225{"Must.specify.alias", "Must specify alias"},226{"Keystore.password.must.be.at.least.6.characters",227"Keystore password must be at least 6 characters"},228{"Enter.the.password.to.be.stored.",229"Enter the password to be stored: "},230{"Enter.keystore.password.", "Enter keystore password: "},231{"Enter.source.keystore.password.", "Enter source keystore password: "},232{"Enter.destination.keystore.password.", "Enter destination keystore password: "},233{"Keystore.password.is.too.short.must.be.at.least.6.characters",234"Keystore password is too short - must be at least 6 characters"},235{"Unknown.Entry.Type", "Unknown Entry Type"},236{"Too.many.failures.Alias.not.changed", "Too many failures. Alias not changed"},237{"Entry.for.alias.alias.successfully.imported.",238"Entry for alias {0} successfully imported."},239{"Entry.for.alias.alias.not.imported.", "Entry for alias {0} not imported."},240{"Problem.importing.entry.for.alias.alias.exception.Entry.for.alias.alias.not.imported.",241"Problem importing entry for alias {0}: {1}.\nEntry for alias {0} not imported."},242{"Import.command.completed.ok.entries.successfully.imported.fail.entries.failed.or.cancelled",243"Import command completed: {0} entries successfully imported, {1} entries failed or cancelled"},244{"Warning.Overwriting.existing.alias.alias.in.destination.keystore",245"Warning: Overwriting existing alias {0} in destination keystore"},246{"Existing.entry.alias.alias.exists.overwrite.no.",247"Existing entry alias {0} exists, overwrite? [no]: "},248{"Too.many.failures.try.later", "Too many failures - try later"},249{"Certification.request.stored.in.file.filename.",250"Certification request stored in file <{0}>"},251{"Submit.this.to.your.CA", "Submit this to your CA"},252{"if.alias.not.specified.destalias.and.srckeypass.must.not.be.specified",253"if alias not specified, destalias and srckeypass must not be specified"},254{"The.destination.pkcs12.keystore.has.different.storepass.and.keypass.Please.retry.with.destkeypass.specified.",255"The destination pkcs12 keystore has different storepass and keypass. Please retry with -destkeypass specified."},256{"Certificate.stored.in.file.filename.",257"Certificate stored in file <{0}>"},258{"Certificate.reply.was.installed.in.keystore",259"Certificate reply was installed in keystore"},260{"Certificate.reply.was.not.installed.in.keystore",261"Certificate reply was not installed in keystore"},262{"Certificate.was.added.to.keystore",263"Certificate was added to keystore"},264{"Certificate.was.not.added.to.keystore",265"Certificate was not added to keystore"},266{".Storing.ksfname.", "[Storing {0}]"},267{"alias.has.no.public.key.certificate.",268"{0} has no public key (certificate)"},269{"Cannot.derive.signature.algorithm",270"Cannot derive signature algorithm"},271{"Alias.alias.does.not.exist",272"Alias <{0}> does not exist"},273{"Alias.alias.has.no.certificate",274"Alias <{0}> has no certificate"},275{"Key.pair.not.generated.alias.alias.already.exists",276"Key pair not generated, alias <{0}> already exists"},277{"Generating.keysize.bit.keyAlgName.key.pair.and.self.signed.certificate.sigAlgName.with.a.validity.of.validality.days.for",278"Generating {0} bit {1} key pair and self-signed certificate ({2}) with a validity of {3} days\n\tfor: {4}"},279{"Enter.key.password.for.alias.", "Enter key password for <{0}>"},280{".RETURN.if.same.as.keystore.password.",281"\t(RETURN if same as keystore password): "},282{"Key.password.is.too.short.must.be.at.least.6.characters",283"Key password is too short - must be at least 6 characters"},284{"Too.many.failures.key.not.added.to.keystore",285"Too many failures - key not added to keystore"},286{"Destination.alias.dest.already.exists",287"Destination alias <{0}> already exists"},288{"Password.is.too.short.must.be.at.least.6.characters",289"Password is too short - must be at least 6 characters"},290{"Too.many.failures.Key.entry.not.cloned",291"Too many failures. Key entry not cloned"},292{"key.password.for.alias.", "key password for <{0}>"},293{"Keystore.entry.for.id.getName.already.exists",294"Keystore entry for <{0}> already exists"},295{"Creating.keystore.entry.for.id.getName.",296"Creating keystore entry for <{0}> ..."},297{"No.entries.from.identity.database.added",298"No entries from identity database added"},299{"Alias.name.alias", "Alias name: {0}"},300{"Creation.date.keyStore.getCreationDate.alias.",301"Creation date: {0,date}"},302{"alias.keyStore.getCreationDate.alias.",303"{0}, {1,date}, "},304{"alias.", "{0}, "},305{"Entry.type.type.", "Entry type: {0}"},306{"Certificate.chain.length.", "Certificate chain length: "},307{"Certificate.i.1.", "Certificate[{0,number,integer}]:"},308{"Certificate.fingerprint.SHA.256.", "Certificate fingerprint (SHA-256): "},309{"Keystore.type.", "Keystore type: "},310{"Keystore.provider.", "Keystore provider: "},311{"Your.keystore.contains.keyStore.size.entry",312"Your keystore contains {0,number,integer} entry"},313{"Your.keystore.contains.keyStore.size.entries",314"Your keystore contains {0,number,integer} entries"},315{"Failed.to.parse.input", "Failed to parse input"},316{"Empty.input", "Empty input"},317{"Not.X.509.certificate", "Not X.509 certificate"},318{"alias.has.no.public.key", "{0} has no public key"},319{"alias.has.no.X.509.certificate", "{0} has no X.509 certificate"},320{"New.certificate.self.signed.", "New certificate (self-signed):"},321{"Reply.has.no.certificates", "Reply has no certificates"},322{"Certificate.not.imported.alias.alias.already.exists",323"Certificate not imported, alias <{0}> already exists"},324{"Input.not.an.X.509.certificate", "Input not an X.509 certificate"},325{"Certificate.already.exists.in.keystore.under.alias.trustalias.",326"Certificate already exists in keystore under alias <{0}>"},327{"Do.you.still.want.to.add.it.no.",328"Do you still want to add it? [no]: "},329{"Certificate.already.exists.in.system.wide.CA.keystore.under.alias.trustalias.",330"Certificate already exists in system-wide CA keystore under alias <{0}>"},331{"Do.you.still.want.to.add.it.to.your.own.keystore.no.",332"Do you still want to add it to your own keystore? [no]: "},333{"Trust.this.certificate.no.", "Trust this certificate? [no]: "},334{"YES", "YES"},335{"New.prompt.", "New {0}: "},336{"Passwords.must.differ", "Passwords must differ"},337{"Re.enter.new.prompt.", "Re-enter new {0}: "},338{"Re.enter.password.", "Re-enter password: "},339{"Re.enter.new.password.", "Re-enter new password: "},340{"They.don.t.match.Try.again", "They don't match. Try again"},341{"Enter.prompt.alias.name.", "Enter {0} alias name: "},342{"Enter.new.alias.name.RETURN.to.cancel.import.for.this.entry.",343"Enter new alias name\t(RETURN to cancel import for this entry): "},344{"Enter.alias.name.", "Enter alias name: "},345{".RETURN.if.same.as.for.otherAlias.",346"\t(RETURN if same as for <{0}>)"},347{"What.is.your.first.and.last.name.",348"What is your first and last name?"},349{"What.is.the.name.of.your.organizational.unit.",350"What is the name of your organizational unit?"},351{"What.is.the.name.of.your.organization.",352"What is the name of your organization?"},353{"What.is.the.name.of.your.City.or.Locality.",354"What is the name of your City or Locality?"},355{"What.is.the.name.of.your.State.or.Province.",356"What is the name of your State or Province?"},357{"What.is.the.two.letter.country.code.for.this.unit.",358"What is the two-letter country code for this unit?"},359{"Is.name.correct.", "Is {0} correct?"},360{"no", "no"},361{"yes", "yes"},362{"y", "y"},363{".defaultValue.", " [{0}]: "},364{"Alias.alias.has.no.key",365"Alias <{0}> has no key"},366{"Alias.alias.references.an.entry.type.that.is.not.a.private.key.entry.The.keyclone.command.only.supports.cloning.of.private.key",367"Alias <{0}> references an entry type that is not a private key entry. The -keyclone command only supports cloning of private key entries"},368369{".WARNING.WARNING.WARNING.",370"***************** WARNING WARNING WARNING *****************"},371{"Signer.d.", "Signer #%d:"},372{"Timestamp.", "Timestamp:"},373{"Signature.", "Signature:"},374{"CRLs.", "CRLs:"},375{"Certificate.owner.", "Certificate owner: "},376{"Not.a.signed.jar.file", "Not a signed jar file"},377{"No.certificate.from.the.SSL.server",378"No certificate from the SSL server"},379380{".The.integrity.of.the.information.stored.in.your.keystore.",381"* The integrity of the information stored in your keystore *\n" +382"* has NOT been verified! In order to verify its integrity, *\n" +383"* you must provide your keystore password. *"},384{".The.integrity.of.the.information.stored.in.the.srckeystore.",385"* The integrity of the information stored in the srckeystore*\n" +386"* has NOT been verified! In order to verify its integrity, *\n" +387"* you must provide the srckeystore password. *"},388389{"Certificate.reply.does.not.contain.public.key.for.alias.",390"Certificate reply does not contain public key for <{0}>"},391{"Incomplete.certificate.chain.in.reply",392"Incomplete certificate chain in reply"},393{"Certificate.chain.in.reply.does.not.verify.",394"Certificate chain in reply does not verify: "},395{"Top.level.certificate.in.reply.",396"Top-level certificate in reply:\n"},397{".is.not.trusted.", "... is not trusted. "},398{"Install.reply.anyway.no.", "Install reply anyway? [no]: "},399{"NO", "NO"},400{"Public.keys.in.reply.and.keystore.don.t.match",401"Public keys in reply and keystore don't match"},402{"Certificate.reply.and.certificate.in.keystore.are.identical",403"Certificate reply and certificate in keystore are identical"},404{"Failed.to.establish.chain.from.reply",405"Failed to establish chain from reply"},406{"n", "n"},407{"Wrong.answer.try.again", "Wrong answer, try again"},408{"Secret.key.not.generated.alias.alias.already.exists",409"Secret Key not generated, alias <{0}> already exists"},410{"Please.provide.keysize.for.secret.key.generation",411"Please provide -keysize for secret key generation"},412413{"warning.not.verified.make.sure.keystore.is.correct",414"WARNING: not verified. Make sure -keystore is correct."},415416{"Extensions.", "Extensions: "},417{".Empty.value.", "(Empty value)"},418{"Extension.Request.", "Extension Request:"},419{"Unknown.keyUsage.type.", "Unknown keyUsage type: "},420{"Unknown.extendedkeyUsage.type.", "Unknown extendedkeyUsage type: "},421{"Unknown.AccessDescription.type.", "Unknown AccessDescription type: "},422{"Unrecognized.GeneralName.type.", "Unrecognized GeneralName type: "},423{"This.extension.cannot.be.marked.as.critical.",424"This extension cannot be marked as critical. "},425{"Odd.number.of.hex.digits.found.", "Odd number of hex digits found: "},426{"Unknown.extension.type.", "Unknown extension type: "},427{"command.{0}.is.ambiguous.", "command {0} is ambiguous:"},428429// 8171319: keytool should print out warnings when reading or430// generating cert/cert req using weak algorithms431{"the.certificate.request", "The certificate request"},432{"the.issuer", "The issuer"},433{"the.generated.certificate", "The generated certificate"},434{"the.generated.crl", "The generated CRL"},435{"the.generated.certificate.request", "The generated certificate request"},436{"the.certificate", "The certificate"},437{"the.crl", "The CRL"},438{"the.tsa.certificate", "The TSA certificate"},439{"the.input", "The input"},440{"reply", "Reply"},441{"one.in.many", "%1$s #%2$d of %3$d"},442{"alias.in.cacerts", "Issuer <%s> in cacerts"},443{"alias.in.keystore", "Issuer <%s>"},444{"with.weak", "%s (weak)"},445{"with.disabled", "%s (disabled)"},446{"key.bit", "%1$d-bit %2$s key"},447{"key.bit.weak", "%1$d-bit %2$s key (weak)"},448{"key.bit.disabled", "%1$d-bit %2$s key (disabled)"},449{"unknown.size.1", "unknown size %s key"},450{".PATTERN.printX509Cert.with.weak",451"Owner: {0}\nIssuer: {1}\nSerial number: {2}\nValid from: {3} until: {4}\nCertificate fingerprints:\n\t SHA1: {5}\n\t SHA256: {6}\nSignature algorithm name: {7}\nSubject Public Key Algorithm: {8} ({9,number,#})\nVersion: {10}"},452{"PKCS.10.with.weak",453"PKCS #10 Certificate Request (Version 1.0)\n" +454"Subject: %1$s\nFormat: %2$s\nPublic Key: %3$s\nSignature algorithm: %4$s\n"},455{"verified.by.s.in.s.weak", "Verified by %1$s in %2$s with a %3$s"},456{"whose.sigalg.disabled", "%1$s uses the %2$s signature algorithm which is considered a security risk and is disabled."},457{"whose.sigalg.weak", "%1$s uses the %2$s signature algorithm which is considered a security risk. This algorithm will be disabled in a future update."},458{"whose.key.disabled", "%1$s uses a %2$s which is considered a security risk and is disabled."},459{"whose.key.weak", "%1$s uses a %2$s which is considered a security risk. This key size will be disabled in a future update."},460{"jks.storetype.warning", "The %1$s keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using \"keytool -importkeystore -srckeystore %2$s -destkeystore %2$s -deststoretype pkcs12\"."},461{"migrate.keystore.warning", "Migrated \"%1$s\" to %4$s. The %2$s keystore is backed up as \"%3$s\"."},462{"backup.keystore.warning", "The original keystore \"%1$s\" is backed up as \"%3$s\"..."},463{"importing.keystore.status", "Importing keystore %1$s to %2$s..."},464};465466467/**468* Returns the contents of this <code>ResourceBundle</code>.469*470* <p>471*472* @return the contents of this <code>ResourceBundle</code>.473*/474@Override475public Object[][] getContents() {476return contents;477}478}479480481