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 {"provider.argument", 137 "provider argument"}, //-providerarg 138 {"provider.class.name", 139 "provider class name"}, //-providerclass 140 {"provider.name", 141 "provider name"}, //-providername 142 {"provider.classpath", 143 "provider classpath"}, //-providerpath 144 {"output.in.RFC.style", 145 "output in RFC style"}, //-rfc 146 {"signature.algorithm.name", 147 "signature algorithm name"}, //-sigalg 148 {"source.alias", 149 "source alias"}, //-srcalias 150 {"source.key.password", 151 "source key password"}, //-srckeypass 152 {"source.keystore.name", 153 "source keystore name"}, //-srckeystore 154 {"source.keystore.password.protected", 155 "source keystore password protected"}, //-srcprotected 156 {"source.keystore.provider.name", 157 "source keystore provider name"}, //-srcprovidername 158 {"source.keystore.password", 159 "source keystore password"}, //-srcstorepass 160 {"source.keystore.type", 161 "source keystore type"}, //-srcstoretype 162 {"SSL.server.host.and.port", 163 "SSL server host and port"}, //-sslserver 164 {"signed.jar.file", 165 "signed jar file"}, //=jarfile 166 {"certificate.validity.start.date.time", 167 "certificate validity start date/time"}, //-startdate 168 {"keystore.password", 169 "keystore password"}, //-storepass 170 {"keystore.type", 171 "keystore type"}, //-storetype 172 {"trust.certificates.from.cacerts", 173 "trust certificates from cacerts"}, //-trustcacerts 174 {"verbose.output", 175 "verbose output"}, //-v 176 {"validity.number.of.days", 177 "validity number of days"}, //-validity 178 {"Serial.ID.of.cert.to.revoke", 179 "Serial ID of cert to revoke"}, //-id 180 // keytool: Running part 181 {"keytool.error.", "keytool error: "}, 182 {"Illegal.option.", "Illegal option: "}, 183 {"Illegal.value.", "Illegal value: "}, 184 {"Unknown.password.type.", "Unknown password type: "}, 185 {"Cannot.find.environment.variable.", 186 "Cannot find environment variable: "}, 187 {"Cannot.find.file.", "Cannot find file: "}, 188 {"Command.option.flag.needs.an.argument.", "Command option {0} needs an argument."}, 189 {"Warning.Different.store.and.key.passwords.not.supported.for.PKCS12.KeyStores.Ignoring.user.specified.command.value.", 190 "Warning: Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified {0} value."}, 191 {".keystore.must.be.NONE.if.storetype.is.{0}", 192 "-keystore must be NONE if -storetype is {0}"}, 193 {"Too.many.retries.program.terminated", 194 "Too many retries, program terminated"}, 195 {".storepasswd.and.keypasswd.commands.not.supported.if.storetype.is.{0}", 196 "-storepasswd and -keypasswd commands not supported if -storetype is {0}"}, 197 {".keypasswd.commands.not.supported.if.storetype.is.PKCS12", 198 "-keypasswd commands not supported if -storetype is PKCS12"}, 199 {".keypass.and.new.can.not.be.specified.if.storetype.is.{0}", 200 "-keypass and -new can not be specified if -storetype is {0}"}, 201 {"if.protected.is.specified.then.storepass.keypass.and.new.must.not.be.specified", 202 "if -protected is specified, then -storepass, -keypass, and -new must not be specified"}, 203 {"if.srcprotected.is.specified.then.srcstorepass.and.srckeypass.must.not.be.specified", 204 "if -srcprotected is specified, then -srcstorepass and -srckeypass must not be specified"}, 205 {"if.keystore.is.not.password.protected.then.storepass.keypass.and.new.must.not.be.specified", 206 "if keystore is not password protected, then -storepass, -keypass, and -new must not be specified"}, 207 {"if.source.keystore.is.not.password.protected.then.srcstorepass.and.srckeypass.must.not.be.specified", 208 "if source keystore is not password protected, then -srcstorepass and -srckeypass must not be specified"}, 209 {"Illegal.startdate.value", "Illegal startdate value"}, 210 {"Validity.must.be.greater.than.zero", 211 "Validity must be greater than zero"}, 212 {"provName.not.a.provider", "{0} not a provider"}, 213 {"Usage.error.no.command.provided", "Usage error: no command provided"}, 214 {"Source.keystore.file.exists.but.is.empty.", "Source keystore file exists, but is empty: "}, 215 {"Please.specify.srckeystore", "Please specify -srckeystore"}, 216 {"Must.not.specify.both.v.and.rfc.with.list.command", 217 "Must not specify both -v and -rfc with 'list' command"}, 218 {"Key.password.must.be.at.least.6.characters", 219 "Key password must be at least 6 characters"}, 220 {"New.password.must.be.at.least.6.characters", 221 "New password must be at least 6 characters"}, 222 {"Keystore.file.exists.but.is.empty.", 223 "Keystore file exists, but is empty: "}, 224 {"Keystore.file.does.not.exist.", 225 "Keystore file does not exist: "}, 226 {"Must.specify.destination.alias", "Must specify destination alias"}, 227 {"Must.specify.alias", "Must specify alias"}, 228 {"Keystore.password.must.be.at.least.6.characters", 229 "Keystore password must be at least 6 characters"}, 230 {"Enter.the.password.to.be.stored.", 231 "Enter the password to be stored: "}, 232 {"Enter.keystore.password.", "Enter keystore password: "}, 233 {"Enter.source.keystore.password.", "Enter source keystore password: "}, 234 {"Enter.destination.keystore.password.", "Enter destination keystore password: "}, 235 {"Keystore.password.is.too.short.must.be.at.least.6.characters", 236 "Keystore password is too short - must be at least 6 characters"}, 237 {"Unknown.Entry.Type", "Unknown Entry Type"}, 238 {"Too.many.failures.Alias.not.changed", "Too many failures. Alias not changed"}, 239 {"Entry.for.alias.alias.successfully.imported.", 240 "Entry for alias {0} successfully imported."}, 241 {"Entry.for.alias.alias.not.imported.", "Entry for alias {0} not imported."}, 242 {"Problem.importing.entry.for.alias.alias.exception.Entry.for.alias.alias.not.imported.", 243 "Problem importing entry for alias {0}: {1}.\nEntry for alias {0} not imported."}, 244 {"Import.command.completed.ok.entries.successfully.imported.fail.entries.failed.or.cancelled", 245 "Import command completed: {0} entries successfully imported, {1} entries failed or cancelled"}, 246 {"Warning.Overwriting.existing.alias.alias.in.destination.keystore", 247 "Warning: Overwriting existing alias {0} in destination keystore"}, 248 {"Existing.entry.alias.alias.exists.overwrite.no.", 249 "Existing entry alias {0} exists, overwrite? [no]: "}, 250 {"Too.many.failures.try.later", "Too many failures - try later"}, 251 {"Certification.request.stored.in.file.filename.", 252 "Certification request stored in file <{0}>"}, 253 {"Submit.this.to.your.CA", "Submit this to your CA"}, 254 {"if.alias.not.specified.destalias.and.srckeypass.must.not.be.specified", 255 "if alias not specified, destalias and srckeypass must not be specified"}, 256 {"The.destination.pkcs12.keystore.has.different.storepass.and.keypass.Please.retry.with.destkeypass.specified.", 257 "The destination pkcs12 keystore has different storepass and keypass. Please retry with -destkeypass specified."}, 258 {"Certificate.stored.in.file.filename.", 259 "Certificate stored in file <{0}>"}, 260 {"Certificate.reply.was.installed.in.keystore", 261 "Certificate reply was installed in keystore"}, 262 {"Certificate.reply.was.not.installed.in.keystore", 263 "Certificate reply was not installed in keystore"}, 264 {"Certificate.was.added.to.keystore", 265 "Certificate was added to keystore"}, 266 {"Certificate.was.not.added.to.keystore", 267 "Certificate was not added to keystore"}, 268 {".Storing.ksfname.", "[Storing {0}]"}, 269 {"alias.has.no.public.key.certificate.", 270 "{0} has no public key (certificate)"}, 271 {"Cannot.derive.signature.algorithm", 272 "Cannot derive signature algorithm"}, 273 {"Alias.alias.does.not.exist", 274 "Alias <{0}> does not exist"}, 275 {"Alias.alias.has.no.certificate", 276 "Alias <{0}> has no certificate"}, 277 {"Key.pair.not.generated.alias.alias.already.exists", 278 "Key pair not generated, alias <{0}> already exists"}, 279 {"Generating.keysize.bit.keyAlgName.key.pair.and.self.signed.certificate.sigAlgName.with.a.validity.of.validality.days.for", 280 "Generating {0} bit {1} key pair and self-signed certificate ({2}) with a validity of {3} days\n\tfor: {4}"}, 281 {"Enter.key.password.for.alias.", "Enter key password for <{0}>"}, 282 {".RETURN.if.same.as.keystore.password.", 283 "\t(RETURN if same as keystore password): "}, 284 {"Key.password.is.too.short.must.be.at.least.6.characters", 285 "Key password is too short - must be at least 6 characters"}, 286 {"Too.many.failures.key.not.added.to.keystore", 287 "Too many failures - key not added to keystore"}, 288 {"Destination.alias.dest.already.exists", 289 "Destination alias <{0}> already exists"}, 290 {"Password.is.too.short.must.be.at.least.6.characters", 291 "Password is too short - must be at least 6 characters"}, 292 {"Too.many.failures.Key.entry.not.cloned", 293 "Too many failures. Key entry not cloned"}, 294 {"key.password.for.alias.", "key password for <{0}>"}, 295 {"Keystore.entry.for.id.getName.already.exists", 296 "Keystore entry for <{0}> already exists"}, 297 {"Creating.keystore.entry.for.id.getName.", 298 "Creating keystore entry for <{0}> ..."}, 299 {"No.entries.from.identity.database.added", 300 "No entries from identity database added"}, 301 {"Alias.name.alias", "Alias name: {0}"}, 302 {"Creation.date.keyStore.getCreationDate.alias.", 303 "Creation date: {0,date}"}, 304 {"alias.keyStore.getCreationDate.alias.", 305 "{0}, {1,date}, "}, 306 {"alias.", "{0}, "}, 307 {"Entry.type.type.", "Entry type: {0}"}, 308 {"Certificate.chain.length.", "Certificate chain length: "}, 309 {"Certificate.i.1.", "Certificate[{0,number,integer}]:"}, 310 {"Certificate.fingerprint.SHA.256.", "Certificate fingerprint (SHA-256): "}, 311 {"Keystore.type.", "Keystore type: "}, 312 {"Keystore.provider.", "Keystore provider: "}, 313 {"Your.keystore.contains.keyStore.size.entry", 314 "Your keystore contains {0,number,integer} entry"}, 315 {"Your.keystore.contains.keyStore.size.entries", 316 "Your keystore contains {0,number,integer} entries"}, 317 {"Failed.to.parse.input", "Failed to parse input"}, 318 {"Empty.input", "Empty input"}, 319 {"Not.X.509.certificate", "Not X.509 certificate"}, 320 {"alias.has.no.public.key", "{0} has no public key"}, 321 {"alias.has.no.X.509.certificate", "{0} has no X.509 certificate"}, 322 {"New.certificate.self.signed.", "New certificate (self-signed):"}, 323 {"Reply.has.no.certificates", "Reply has no certificates"}, 324 {"Certificate.not.imported.alias.alias.already.exists", 325 "Certificate not imported, alias <{0}> already exists"}, 326 {"Input.not.an.X.509.certificate", "Input not an X.509 certificate"}, 327 {"Certificate.already.exists.in.keystore.under.alias.trustalias.", 328 "Certificate already exists in keystore under alias <{0}>"}, 329 {"Do.you.still.want.to.add.it.no.", 330 "Do you still want to add it? [no]: "}, 331 {"Certificate.already.exists.in.system.wide.CA.keystore.under.alias.trustalias.", 332 "Certificate already exists in system-wide CA keystore under alias <{0}>"}, 333 {"Do.you.still.want.to.add.it.to.your.own.keystore.no.", 334 "Do you still want to add it to your own keystore? [no]: "}, 335 {"Trust.this.certificate.no.", "Trust this certificate? [no]: "}, 336 {"YES", "YES"}, 337 {"New.prompt.", "New {0}: "}, 338 {"Passwords.must.differ", "Passwords must differ"}, 339 {"Re.enter.new.prompt.", "Re-enter new {0}: "}, 340 {"Re.enter.password.", "Re-enter password: "}, 341 {"Re.enter.new.password.", "Re-enter new password: "}, 342 {"They.don.t.match.Try.again", "They don't match. Try again"}, 343 {"Enter.prompt.alias.name.", "Enter {0} alias name: "}, 344 {"Enter.new.alias.name.RETURN.to.cancel.import.for.this.entry.", 345 "Enter new alias name\t(RETURN to cancel import for this entry): "}, 346 {"Enter.alias.name.", "Enter alias name: "}, 347 {".RETURN.if.same.as.for.otherAlias.", 348 "\t(RETURN if same as for <{0}>)"}, 349 {".PATTERN.printX509Cert", 350 "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}"}, 351 {"What.is.your.first.and.last.name.", 352 "What is your first and last name?"}, 353 {"What.is.the.name.of.your.organizational.unit.", 354 "What is the name of your organizational unit?"}, 355 {"What.is.the.name.of.your.organization.", 356 "What is the name of your organization?"}, 357 {"What.is.the.name.of.your.City.or.Locality.", 358 "What is the name of your City or Locality?"}, 359 {"What.is.the.name.of.your.State.or.Province.", 360 "What is the name of your State or Province?"}, 361 {"What.is.the.two.letter.country.code.for.this.unit.", 362 "What is the two-letter country code for this unit?"}, 363 {"Is.name.correct.", "Is {0} correct?"}, 364 {"no", "no"}, 365 {"yes", "yes"}, 366 {"y", "y"}, 367 {".defaultValue.", " [{0}]: "}, 368 {"Alias.alias.has.no.key", 369 "Alias <{0}> has no key"}, 370 {"Alias.alias.references.an.entry.type.that.is.not.a.private.key.entry.The.keyclone.command.only.supports.cloning.of.private.key", 371 "Alias <{0}> references an entry type that is not a private key entry. The -keyclone command only supports cloning of private key entries"}, 372 373 {".WARNING.WARNING.WARNING.", 374 "***************** WARNING WARNING WARNING *****************"}, 375 {"Signer.d.", "Signer #%d:"}, 376 {"Timestamp.", "Timestamp:"}, 377 {"Signature.", "Signature:"}, 378 {"CRLs.", "CRLs:"}, 379 {"Certificate.owner.", "Certificate owner: "}, 380 {"Not.a.signed.jar.file", "Not a signed jar file"}, 381 {"No.certificate.from.the.SSL.server", 382 "No certificate from the SSL server"}, 383 384 {".The.integrity.of.the.information.stored.in.your.keystore.", 385 "* The integrity of the information stored in your keystore *\n" + 386 "* has NOT been verified! In order to verify its integrity, *\n" + 387 "* you must provide your keystore password. *"}, 388 {".The.integrity.of.the.information.stored.in.the.srckeystore.", 389 "* The integrity of the information stored in the srckeystore*\n" + 390 "* has NOT been verified! In order to verify its integrity, *\n" + 391 "* you must provide the srckeystore password. *"}, 392 393 {"Certificate.reply.does.not.contain.public.key.for.alias.", 394 "Certificate reply does not contain public key for <{0}>"}, 395 {"Incomplete.certificate.chain.in.reply", 396 "Incomplete certificate chain in reply"}, 397 {"Certificate.chain.in.reply.does.not.verify.", 398 "Certificate chain in reply does not verify: "}, 399 {"Top.level.certificate.in.reply.", 400 "Top-level certificate in reply:\n"}, 401 {".is.not.trusted.", "... is not trusted. "}, 402 {"Install.reply.anyway.no.", "Install reply anyway? [no]: "}, 403 {"NO", "NO"}, 404 {"Public.keys.in.reply.and.keystore.don.t.match", 405 "Public keys in reply and keystore don't match"}, 406 {"Certificate.reply.and.certificate.in.keystore.are.identical", 407 "Certificate reply and certificate in keystore are identical"}, 408 {"Failed.to.establish.chain.from.reply", 409 "Failed to establish chain from reply"}, 410 {"n", "n"}, 411 {"Wrong.answer.try.again", "Wrong answer, try again"}, 412 {"Secret.key.not.generated.alias.alias.already.exists", 413 "Secret Key not generated, alias <{0}> already exists"}, 414 {"Please.provide.keysize.for.secret.key.generation", 415 "Please provide -keysize for secret key generation"}, 416 417 {"verified.by.s.in.s", "Verified by %s in %s"}, 418 {"warning.not.verified.make.sure.keystore.is.correct", 419 "WARNING: not verified. Make sure -keystore is correct."}, 420 421 {"Extensions.", "Extensions: "}, 422 {".Empty.value.", "(Empty value)"}, 423 {"Extension.Request.", "Extension Request:"}, 424 {"PKCS.10.Certificate.Request.Version.1.0.Subject.s.Public.Key.s.format.s.key.", 425 "PKCS #10 Certificate Request (Version 1.0)\n" + 426 "Subject: %s\nPublic Key: %s format %s key\n"}, 427 {"Unknown.keyUsage.type.", "Unknown keyUsage type: "}, 428 {"Unknown.extendedkeyUsage.type.", "Unknown extendedkeyUsage type: "}, 429 {"Unknown.AccessDescription.type.", "Unknown AccessDescription type: "}, 430 {"Unrecognized.GeneralName.type.", "Unrecognized GeneralName type: "}, 431 {"This.extension.cannot.be.marked.as.critical.", 432 "This extension cannot be marked as critical. "}, 433 {"Odd.number.of.hex.digits.found.", "Odd number of hex digits found: "}, 434 {"Unknown.extension.type.", "Unknown extension type: "}, 435 {"command.{0}.is.ambiguous.", "command {0} is ambiguous:"} 436 }; 437 438 439 /** 440 * Returns the contents of this <code>ResourceBundle</code>. 441 * 442 * <p> 443 * 444 * @return the contents of this <code>ResourceBundle</code>. 445 */ 446 @Override 447 public Object[][] getContents() { 448 return contents; 449 } 450 }