1 /* 2 * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package sun.security.tools.keytool; 27 28 /** 29 * <p> This class represents the <code>ResourceBundle</code> 30 * for the keytool. 31 * 32 */ 33 public class Resources extends java.util.ListResourceBundle { 34 35 private static final Object[][] contents = { 36 {"NEWLINE", "\n"}, 37 {"STAR", 38 "*******************************************"}, 39 {"STARNN", 40 "*******************************************\n\n"}, 41 42 // keytool: Help part 43 {".OPTION.", " [OPTION]..."}, 44 {"Options.", "Options:"}, 45 {"Use.keytool.help.for.all.available.commands", 46 "Use \"keytool -help\" for all available commands"}, 47 {"Key.and.Certificate.Management.Tool", 48 "Key and Certificate Management Tool"}, 49 {"Commands.", "Commands:"}, 50 {"Use.keytool.command.name.help.for.usage.of.command.name", 51 "Use \"keytool -command_name -help\" for usage of command_name.\n" + 52 "Use the -conf <url> option to specify a pre-configured options file."}, 53 // keytool: help: commands 54 {"Generates.a.certificate.request", 55 "Generates a certificate request"}, //-certreq 56 {"Changes.an.entry.s.alias", 57 "Changes an entry's alias"}, //-changealias 58 {"Deletes.an.entry", 59 "Deletes an entry"}, //-delete 60 {"Exports.certificate", 61 "Exports certificate"}, //-exportcert 62 {"Generates.a.key.pair", 63 "Generates a key pair"}, //-genkeypair 64 {"Generates.a.secret.key", 65 "Generates a secret key"}, //-genseckey 66 {"Generates.certificate.from.a.certificate.request", 67 "Generates certificate from a certificate request"}, //-gencert 68 {"Generates.CRL", "Generates CRL"}, //-gencrl 69 {"Generated.keyAlgName.secret.key", 70 "Generated {0} secret key"}, //-genseckey 71 {"Generated.keysize.bit.keyAlgName.secret.key", 72 "Generated {0}-bit {1} secret key"}, //-genseckey 73 {"Imports.entries.from.a.JDK.1.1.x.style.identity.database", 74 "Imports entries from a JDK 1.1.x-style identity database"}, //-identitydb 75 {"Imports.a.certificate.or.a.certificate.chain", 76 "Imports a certificate or a certificate chain"}, //-importcert 77 {"Imports.a.password", 78 "Imports a password"}, //-importpass 79 {"Imports.one.or.all.entries.from.another.keystore", 80 "Imports one or all entries from another keystore"}, //-importkeystore 81 {"Clones.a.key.entry", 82 "Clones a key entry"}, //-keyclone 83 {"Changes.the.key.password.of.an.entry", 84 "Changes the key password of an entry"}, //-keypasswd 85 {"Lists.entries.in.a.keystore", 86 "Lists entries in a keystore"}, //-list 87 {"Prints.the.content.of.a.certificate", 88 "Prints the content of a certificate"}, //-printcert 89 {"Prints.the.content.of.a.certificate.request", 90 "Prints the content of a certificate request"}, //-printcertreq 91 {"Prints.the.content.of.a.CRL.file", 92 "Prints the content of a CRL file"}, //-printcrl 93 {"Generates.a.self.signed.certificate", 94 "Generates a self-signed certificate"}, //-selfcert 95 {"Changes.the.store.password.of.a.keystore", 96 "Changes the store password of a keystore"}, //-storepasswd 97 // keytool: help: options 98 {"alias.name.of.the.entry.to.process", 99 "alias name of the entry to process"}, //-alias 100 {"destination.alias", 101 "destination alias"}, //-destalias 102 {"destination.key.password", 103 "destination key password"}, //-destkeypass 104 {"destination.keystore.name", 105 "destination keystore name"}, //-destkeystore 106 {"destination.keystore.password.protected", 107 "destination keystore password protected"}, //-destprotected 108 {"destination.keystore.provider.name", 109 "destination keystore provider name"}, //-destprovidername 110 {"destination.keystore.password", 111 "destination keystore password"}, //-deststorepass 112 {"destination.keystore.type", 113 "destination keystore type"}, //-deststoretype 114 {"distinguished.name", 115 "distinguished name"}, //-dname 116 {"X.509.extension", 117 "X.509 extension"}, //-ext 118 {"output.file.name", 119 "output file name"}, //-file and -outfile 120 {"input.file.name", 121 "input file name"}, //-file and -infile 122 {"key.algorithm.name", 123 "key algorithm name"}, //-keyalg 124 {"key.password", 125 "key password"}, //-keypass 126 {"key.bit.size", 127 "key bit size"}, //-keysize 128 {"keystore.name", 129 "keystore name"}, //-keystore 130 {"new.password", 131 "new password"}, //-new 132 {"do.not.prompt", 133 "do not prompt"}, //-noprompt 134 {"password.through.protected.mechanism", 135 "password through protected mechanism"}, //-protected 136 137 // The following 2 values should span 2 lines, the first for the 138 // option itself, the second for its -providerArg value. 139 {"provider.option", 140 "add security provider by name (e.g. SunPKCS11)\n" + 141 "configure argument for -provider"}, //-provider 142 {"provider.class.option", 143 "add security provider by fully-qualified classname\n" + 144 "configure argument for -providerclass"}, //-providerclass 145 146 {"provider.name", 147 "provider name"}, //-providername 148 {"provider.classpath", 149 "provider classpath"}, //-providerpath 150 {"output.in.RFC.style", 151 "output in RFC style"}, //-rfc 152 {"signature.algorithm.name", 153 "signature algorithm name"}, //-sigalg 154 {"source.alias", 155 "source alias"}, //-srcalias 156 {"source.key.password", 157 "source key password"}, //-srckeypass 158 {"source.keystore.name", 159 "source keystore name"}, //-srckeystore 160 {"source.keystore.password.protected", 161 "source keystore password protected"}, //-srcprotected 162 {"source.keystore.provider.name", 163 "source keystore provider name"}, //-srcprovidername 164 {"source.keystore.password", 165 "source keystore password"}, //-srcstorepass 166 {"source.keystore.type", 167 "source keystore type"}, //-srcstoretype 168 {"SSL.server.host.and.port", 169 "SSL server host and port"}, //-sslserver 170 {"signed.jar.file", 171 "signed jar file"}, //=jarfile 172 {"certificate.validity.start.date.time", 173 "certificate validity start date/time"}, //-startdate 174 {"keystore.password", 175 "keystore password"}, //-storepass 176 {"keystore.type", 177 "keystore type"}, //-storetype 178 {"trust.certificates.from.cacerts", 179 "trust certificates from cacerts"}, //-trustcacerts 180 {"verbose.output", 181 "verbose output"}, //-v 182 {"validity.number.of.days", 183 "validity number of days"}, //-validity 184 {"Serial.ID.of.cert.to.revoke", 185 "Serial ID of cert to revoke"}, //-id 186 // keytool: Running part 187 {"keytool.error.", "keytool error: "}, 188 {"Illegal.option.", "Illegal option: "}, 189 {"Illegal.value.", "Illegal value: "}, 190 {"Unknown.password.type.", "Unknown password type: "}, 191 {"Cannot.find.environment.variable.", 192 "Cannot find environment variable: "}, 193 {"Cannot.find.file.", "Cannot find file: "}, 194 {"Command.option.flag.needs.an.argument.", "Command option {0} needs an argument."}, 195 {"Warning.Different.store.and.key.passwords.not.supported.for.PKCS12.KeyStores.Ignoring.user.specified.command.value.", 196 "Warning: Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified {0} value."}, 197 {".keystore.must.be.NONE.if.storetype.is.{0}", 198 "-keystore must be NONE if -storetype is {0}"}, 199 {"Too.many.retries.program.terminated", 200 "Too many retries, program terminated"}, 201 {".storepasswd.and.keypasswd.commands.not.supported.if.storetype.is.{0}", 202 "-storepasswd and -keypasswd commands not supported if -storetype is {0}"}, 203 {".keypasswd.commands.not.supported.if.storetype.is.PKCS12", 204 "-keypasswd commands not supported if -storetype is PKCS12"}, 205 {".keypass.and.new.can.not.be.specified.if.storetype.is.{0}", 206 "-keypass and -new can not be specified if -storetype is {0}"}, 207 {"if.protected.is.specified.then.storepass.keypass.and.new.must.not.be.specified", 208 "if -protected is specified, then -storepass, -keypass, and -new must not be specified"}, 209 {"if.srcprotected.is.specified.then.srcstorepass.and.srckeypass.must.not.be.specified", 210 "if -srcprotected is specified, then -srcstorepass and -srckeypass must not be specified"}, 211 {"if.keystore.is.not.password.protected.then.storepass.keypass.and.new.must.not.be.specified", 212 "if keystore is not password protected, then -storepass, -keypass, and -new must not be specified"}, 213 {"if.source.keystore.is.not.password.protected.then.srcstorepass.and.srckeypass.must.not.be.specified", 214 "if source keystore is not password protected, then -srcstorepass and -srckeypass must not be specified"}, 215 {"Illegal.startdate.value", "Illegal startdate value"}, 216 {"Validity.must.be.greater.than.zero", 217 "Validity must be greater than zero"}, 218 {"provName.not.a.provider", "{0} not a provider"}, 219 {"Usage.error.no.command.provided", "Usage error: no command provided"}, 220 {"Source.keystore.file.exists.but.is.empty.", "Source keystore file exists, but is empty: "}, 221 {"Please.specify.srckeystore", "Please specify -srckeystore"}, 222 {"Must.not.specify.both.v.and.rfc.with.list.command", 223 "Must not specify both -v and -rfc with 'list' command"}, 224 {"Key.password.must.be.at.least.6.characters", 225 "Key password must be at least 6 characters"}, 226 {"New.password.must.be.at.least.6.characters", 227 "New password must be at least 6 characters"}, 228 {"Keystore.file.exists.but.is.empty.", 229 "Keystore file exists, but is empty: "}, 230 {"Keystore.file.does.not.exist.", 231 "Keystore file does not exist: "}, 232 {"Must.specify.destination.alias", "Must specify destination alias"}, 233 {"Must.specify.alias", "Must specify alias"}, 234 {"Keystore.password.must.be.at.least.6.characters", 235 "Keystore password must be at least 6 characters"}, 236 {"Enter.the.password.to.be.stored.", 237 "Enter the password to be stored: "}, 238 {"Enter.keystore.password.", "Enter keystore password: "}, 239 {"Enter.source.keystore.password.", "Enter source keystore password: "}, 240 {"Enter.destination.keystore.password.", "Enter destination keystore password: "}, 241 {"Keystore.password.is.too.short.must.be.at.least.6.characters", 242 "Keystore password is too short - must be at least 6 characters"}, 243 {"Unknown.Entry.Type", "Unknown Entry Type"}, 244 {"Too.many.failures.Alias.not.changed", "Too many failures. Alias not changed"}, 245 {"Entry.for.alias.alias.successfully.imported.", 246 "Entry for alias {0} successfully imported."}, 247 {"Entry.for.alias.alias.not.imported.", "Entry for alias {0} not imported."}, 248 {"Problem.importing.entry.for.alias.alias.exception.Entry.for.alias.alias.not.imported.", 249 "Problem importing entry for alias {0}: {1}.\nEntry for alias {0} not imported."}, 250 {"Import.command.completed.ok.entries.successfully.imported.fail.entries.failed.or.cancelled", 251 "Import command completed: {0} entries successfully imported, {1} entries failed or cancelled"}, 252 {"Warning.Overwriting.existing.alias.alias.in.destination.keystore", 253 "Warning: Overwriting existing alias {0} in destination keystore"}, 254 {"Existing.entry.alias.alias.exists.overwrite.no.", 255 "Existing entry alias {0} exists, overwrite? [no]: "}, 256 {"Too.many.failures.try.later", "Too many failures - try later"}, 257 {"Certification.request.stored.in.file.filename.", 258 "Certification request stored in file <{0}>"}, 259 {"Submit.this.to.your.CA", "Submit this to your CA"}, 260 {"if.alias.not.specified.destalias.and.srckeypass.must.not.be.specified", 261 "if alias not specified, destalias and srckeypass must not be specified"}, 262 {"The.destination.pkcs12.keystore.has.different.storepass.and.keypass.Please.retry.with.destkeypass.specified.", 263 "The destination pkcs12 keystore has different storepass and keypass. Please retry with -destkeypass specified."}, 264 {"Certificate.stored.in.file.filename.", 265 "Certificate stored in file <{0}>"}, 266 {"Certificate.reply.was.installed.in.keystore", 267 "Certificate reply was installed in keystore"}, 268 {"Certificate.reply.was.not.installed.in.keystore", 269 "Certificate reply was not installed in keystore"}, 270 {"Certificate.was.added.to.keystore", 271 "Certificate was added to keystore"}, 272 {"Certificate.was.not.added.to.keystore", 273 "Certificate was not added to keystore"}, 274 {".Storing.ksfname.", "[Storing {0}]"}, 275 {"alias.has.no.public.key.certificate.", 276 "{0} has no public key (certificate)"}, 277 {"Cannot.derive.signature.algorithm", 278 "Cannot derive signature algorithm"}, 279 {"Alias.alias.does.not.exist", 280 "Alias <{0}> does not exist"}, 281 {"Alias.alias.has.no.certificate", 282 "Alias <{0}> has no certificate"}, 283 {"Key.pair.not.generated.alias.alias.already.exists", 284 "Key pair not generated, alias <{0}> already exists"}, 285 {"Generating.keysize.bit.keyAlgName.key.pair.and.self.signed.certificate.sigAlgName.with.a.validity.of.validality.days.for", 286 "Generating {0} bit {1} key pair and self-signed certificate ({2}) with a validity of {3} days\n\tfor: {4}"}, 287 {"Enter.key.password.for.alias.", "Enter key password for <{0}>"}, 288 {".RETURN.if.same.as.keystore.password.", 289 "\t(RETURN if same as keystore password): "}, 290 {"Key.password.is.too.short.must.be.at.least.6.characters", 291 "Key password is too short - must be at least 6 characters"}, 292 {"Too.many.failures.key.not.added.to.keystore", 293 "Too many failures - key not added to keystore"}, 294 {"Destination.alias.dest.already.exists", 295 "Destination alias <{0}> already exists"}, 296 {"Password.is.too.short.must.be.at.least.6.characters", 297 "Password is too short - must be at least 6 characters"}, 298 {"Too.many.failures.Key.entry.not.cloned", 299 "Too many failures. Key entry not cloned"}, 300 {"key.password.for.alias.", "key password for <{0}>"}, 301 {"Keystore.entry.for.id.getName.already.exists", 302 "Keystore entry for <{0}> already exists"}, 303 {"Creating.keystore.entry.for.id.getName.", 304 "Creating keystore entry for <{0}> ..."}, 305 {"No.entries.from.identity.database.added", 306 "No entries from identity database added"}, 307 {"Alias.name.alias", "Alias name: {0}"}, 308 {"Creation.date.keyStore.getCreationDate.alias.", 309 "Creation date: {0,date}"}, 310 {"alias.keyStore.getCreationDate.alias.", 311 "{0}, {1,date}, "}, 312 {"alias.", "{0}, "}, 313 {"Entry.type.type.", "Entry type: {0}"}, 314 {"Certificate.chain.length.", "Certificate chain length: "}, 315 {"Certificate.i.1.", "Certificate[{0,number,integer}]:"}, 316 {"Certificate.fingerprint.SHA.256.", "Certificate fingerprint (SHA-256): "}, 317 {"Keystore.type.", "Keystore type: "}, 318 {"Keystore.provider.", "Keystore provider: "}, 319 {"Your.keystore.contains.keyStore.size.entry", 320 "Your keystore contains {0,number,integer} entry"}, 321 {"Your.keystore.contains.keyStore.size.entries", 322 "Your keystore contains {0,number,integer} entries"}, 323 {"Failed.to.parse.input", "Failed to parse input"}, 324 {"Empty.input", "Empty input"}, 325 {"Not.X.509.certificate", "Not X.509 certificate"}, 326 {"alias.has.no.public.key", "{0} has no public key"}, 327 {"alias.has.no.X.509.certificate", "{0} has no X.509 certificate"}, 328 {"New.certificate.self.signed.", "New certificate (self-signed):"}, 329 {"Reply.has.no.certificates", "Reply has no certificates"}, 330 {"Certificate.not.imported.alias.alias.already.exists", 331 "Certificate not imported, alias <{0}> already exists"}, 332 {"Input.not.an.X.509.certificate", "Input not an X.509 certificate"}, 333 {"Certificate.already.exists.in.keystore.under.alias.trustalias.", 334 "Certificate already exists in keystore under alias <{0}>"}, 335 {"Do.you.still.want.to.add.it.no.", 336 "Do you still want to add it? [no]: "}, 337 {"Certificate.already.exists.in.system.wide.CA.keystore.under.alias.trustalias.", 338 "Certificate already exists in system-wide CA keystore under alias <{0}>"}, 339 {"Do.you.still.want.to.add.it.to.your.own.keystore.no.", 340 "Do you still want to add it to your own keystore? [no]: "}, 341 {"Trust.this.certificate.no.", "Trust this certificate? [no]: "}, 342 {"YES", "YES"}, 343 {"New.prompt.", "New {0}: "}, 344 {"Passwords.must.differ", "Passwords must differ"}, 345 {"Re.enter.new.prompt.", "Re-enter new {0}: "}, 346 {"Re.enter.password.", "Re-enter password: "}, 347 {"Re.enter.new.password.", "Re-enter new password: "}, 348 {"They.don.t.match.Try.again", "They don't match. Try again"}, 349 {"Enter.prompt.alias.name.", "Enter {0} alias name: "}, 350 {"Enter.new.alias.name.RETURN.to.cancel.import.for.this.entry.", 351 "Enter new alias name\t(RETURN to cancel import for this entry): "}, 352 {"Enter.alias.name.", "Enter alias name: "}, 353 {".RETURN.if.same.as.for.otherAlias.", 354 "\t(RETURN if same as for <{0}>)"}, 355 {".PATTERN.printX509Cert", 356 "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}"}, 357 {"What.is.your.first.and.last.name.", 358 "What is your first and last name?"}, 359 {"What.is.the.name.of.your.organizational.unit.", 360 "What is the name of your organizational unit?"}, 361 {"What.is.the.name.of.your.organization.", 362 "What is the name of your organization?"}, 363 {"What.is.the.name.of.your.City.or.Locality.", 364 "What is the name of your City or Locality?"}, 365 {"What.is.the.name.of.your.State.or.Province.", 366 "What is the name of your State or Province?"}, 367 {"What.is.the.two.letter.country.code.for.this.unit.", 368 "What is the two-letter country code for this unit?"}, 369 {"Is.name.correct.", "Is {0} correct?"}, 370 {"no", "no"}, 371 {"yes", "yes"}, 372 {"y", "y"}, 373 {".defaultValue.", " [{0}]: "}, 374 {"Alias.alias.has.no.key", 375 "Alias <{0}> has no key"}, 376 {"Alias.alias.references.an.entry.type.that.is.not.a.private.key.entry.The.keyclone.command.only.supports.cloning.of.private.key", 377 "Alias <{0}> references an entry type that is not a private key entry. The -keyclone command only supports cloning of private key entries"}, 378 379 {".WARNING.WARNING.WARNING.", 380 "***************** WARNING WARNING WARNING *****************"}, 381 {"Signer.d.", "Signer #%d:"}, 382 {"Timestamp.", "Timestamp:"}, 383 {"Signature.", "Signature:"}, 384 {"CRLs.", "CRLs:"}, 385 {"Certificate.owner.", "Certificate owner: "}, 386 {"Not.a.signed.jar.file", "Not a signed jar file"}, 387 {"No.certificate.from.the.SSL.server", 388 "No certificate from the SSL server"}, 389 390 {".The.integrity.of.the.information.stored.in.your.keystore.", 391 "* The integrity of the information stored in your keystore *\n" + 392 "* has NOT been verified! In order to verify its integrity, *\n" + 393 "* you must provide your keystore password. *"}, 394 {".The.integrity.of.the.information.stored.in.the.srckeystore.", 395 "* The integrity of the information stored in the srckeystore*\n" + 396 "* has NOT been verified! In order to verify its integrity, *\n" + 397 "* you must provide the srckeystore password. *"}, 398 399 {"Certificate.reply.does.not.contain.public.key.for.alias.", 400 "Certificate reply does not contain public key for <{0}>"}, 401 {"Incomplete.certificate.chain.in.reply", 402 "Incomplete certificate chain in reply"}, 403 {"Certificate.chain.in.reply.does.not.verify.", 404 "Certificate chain in reply does not verify: "}, 405 {"Top.level.certificate.in.reply.", 406 "Top-level certificate in reply:\n"}, 407 {".is.not.trusted.", "... is not trusted. "}, 408 {"Install.reply.anyway.no.", "Install reply anyway? [no]: "}, 409 {"NO", "NO"}, 410 {"Public.keys.in.reply.and.keystore.don.t.match", 411 "Public keys in reply and keystore don't match"}, 412 {"Certificate.reply.and.certificate.in.keystore.are.identical", 413 "Certificate reply and certificate in keystore are identical"}, 414 {"Failed.to.establish.chain.from.reply", 415 "Failed to establish chain from reply"}, 416 {"n", "n"}, 417 {"Wrong.answer.try.again", "Wrong answer, try again"}, 418 {"Secret.key.not.generated.alias.alias.already.exists", 419 "Secret Key not generated, alias <{0}> already exists"}, 420 {"Please.provide.keysize.for.secret.key.generation", 421 "Please provide -keysize for secret key generation"}, 422 423 {"verified.by.s.in.s", "Verified by %s in %s"}, 424 {"warning.not.verified.make.sure.keystore.is.correct", 425 "WARNING: not verified. Make sure -keystore is correct."}, 426 427 {"Extensions.", "Extensions: "}, 428 {".Empty.value.", "(Empty value)"}, 429 {"Extension.Request.", "Extension Request:"}, 430 {"PKCS.10.Certificate.Request.Version.1.0.Subject.s.Public.Key.s.format.s.key.", 431 "PKCS #10 Certificate Request (Version 1.0)\n" + 432 "Subject: %s\nPublic Key: %s format %s key\n"}, 433 {"Unknown.keyUsage.type.", "Unknown keyUsage type: "}, 434 {"Unknown.extendedkeyUsage.type.", "Unknown extendedkeyUsage type: "}, 435 {"Unknown.AccessDescription.type.", "Unknown AccessDescription type: "}, 436 {"Unrecognized.GeneralName.type.", "Unrecognized GeneralName type: "}, 437 {"This.extension.cannot.be.marked.as.critical.", 438 "This extension cannot be marked as critical. "}, 439 {"Odd.number.of.hex.digits.found.", "Odd number of hex digits found: "}, 440 {"Unknown.extension.type.", "Unknown extension type: "}, 441 {"command.{0}.is.ambiguous.", "command {0} is ambiguous:"} 442 }; 443 444 445 /** 446 * Returns the contents of this <code>ResourceBundle</code>. 447 * 448 * <p> 449 * 450 * @return the contents of this <code>ResourceBundle</code>. 451 */ 452 @Override 453 public Object[][] getContents() { 454 return contents; 455 } 456 }