< prev index next >

src/java.base/share/classes/sun/security/tools/keytool/Resources.java

Print this page
rev 16540 : 8171319: keytool should print out warnings when reading or generating cert/cert req using weak algorithms


 343         {"Do.you.still.want.to.add.it.no.",
 344                 "Do you still want to add it? [no]:  "},
 345         {"Certificate.already.exists.in.system.wide.CA.keystore.under.alias.trustalias.",
 346                 "Certificate already exists in system-wide CA keystore under alias <{0}>"},
 347         {"Do.you.still.want.to.add.it.to.your.own.keystore.no.",
 348                 "Do you still want to add it to your own keystore? [no]:  "},
 349         {"Trust.this.certificate.no.", "Trust this certificate? [no]:  "},
 350         {"YES", "YES"},
 351         {"New.prompt.", "New {0}: "},
 352         {"Passwords.must.differ", "Passwords must differ"},
 353         {"Re.enter.new.prompt.", "Re-enter new {0}: "},
 354         {"Re.enter.password.", "Re-enter password: "},
 355         {"Re.enter.new.password.", "Re-enter new password: "},
 356         {"They.don.t.match.Try.again", "They don't match. Try again"},
 357         {"Enter.prompt.alias.name.", "Enter {0} alias name:  "},
 358         {"Enter.new.alias.name.RETURN.to.cancel.import.for.this.entry.",
 359                  "Enter new alias name\t(RETURN to cancel import for this entry):  "},
 360         {"Enter.alias.name.", "Enter alias name:  "},
 361         {".RETURN.if.same.as.for.otherAlias.",
 362                 "\t(RETURN if same as for <{0}>)"},
 363         {".PATTERN.printX509Cert",
 364                 "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}"},
 365         {"What.is.your.first.and.last.name.",
 366                 "What is your first and last name?"},
 367         {"What.is.the.name.of.your.organizational.unit.",
 368                 "What is the name of your organizational unit?"},
 369         {"What.is.the.name.of.your.organization.",
 370                 "What is the name of your organization?"},
 371         {"What.is.the.name.of.your.City.or.Locality.",
 372                 "What is the name of your City or Locality?"},
 373         {"What.is.the.name.of.your.State.or.Province.",
 374                 "What is the name of your State or Province?"},
 375         {"What.is.the.two.letter.country.code.for.this.unit.",
 376                 "What is the two-letter country code for this unit?"},
 377         {"Is.name.correct.", "Is {0} correct?"},
 378         {"no", "no"},
 379         {"yes", "yes"},
 380         {"y", "y"},
 381         {".defaultValue.", "  [{0}]:  "},
 382         {"Alias.alias.has.no.key",
 383                 "Alias <{0}> has no key"},
 384         {"Alias.alias.references.an.entry.type.that.is.not.a.private.key.entry.The.keyclone.command.only.supports.cloning.of.private.key",


 411         {"Certificate.chain.in.reply.does.not.verify.",
 412                 "Certificate chain in reply does not verify: "},
 413         {"Top.level.certificate.in.reply.",
 414                 "Top-level certificate in reply:\n"},
 415         {".is.not.trusted.", "... is not trusted. "},
 416         {"Install.reply.anyway.no.", "Install reply anyway? [no]:  "},
 417         {"NO", "NO"},
 418         {"Public.keys.in.reply.and.keystore.don.t.match",
 419                 "Public keys in reply and keystore don't match"},
 420         {"Certificate.reply.and.certificate.in.keystore.are.identical",
 421                 "Certificate reply and certificate in keystore are identical"},
 422         {"Failed.to.establish.chain.from.reply",
 423                 "Failed to establish chain from reply"},
 424         {"n", "n"},
 425         {"Wrong.answer.try.again", "Wrong answer, try again"},
 426         {"Secret.key.not.generated.alias.alias.already.exists",
 427                 "Secret Key not generated, alias <{0}> already exists"},
 428         {"Please.provide.keysize.for.secret.key.generation",
 429                 "Please provide -keysize for secret key generation"},
 430 
 431         {"verified.by.s.in.s", "Verified by %s in %s"},
 432         {"warning.not.verified.make.sure.keystore.is.correct",
 433             "WARNING: not verified. Make sure -keystore is correct."},
 434 
 435         {"Extensions.", "Extensions: "},
 436         {".Empty.value.", "(Empty value)"},
 437         {"Extension.Request.", "Extension Request:"},
 438         {"PKCS.10.Certificate.Request.Version.1.0.Subject.s.Public.Key.s.format.s.key.",
 439                 "PKCS #10 Certificate Request (Version 1.0)\n" +
 440                 "Subject: %s\nPublic Key: %s format %s key\n"},
 441         {"Unknown.keyUsage.type.", "Unknown keyUsage type: "},
 442         {"Unknown.extendedkeyUsage.type.", "Unknown extendedkeyUsage type: "},
 443         {"Unknown.AccessDescription.type.", "Unknown AccessDescription type: "},
 444         {"Unrecognized.GeneralName.type.", "Unrecognized GeneralName type: "},
 445         {"This.extension.cannot.be.marked.as.critical.",
 446                  "This extension cannot be marked as critical. "},
 447         {"Odd.number.of.hex.digits.found.", "Odd number of hex digits found: "},
 448         {"Unknown.extension.type.", "Unknown extension type: "},
 449         {"command.{0}.is.ambiguous.", "command {0} is ambiguous:"}
























 450     };
 451 
 452 
 453     /**
 454      * Returns the contents of this <code>ResourceBundle</code>.
 455      *
 456      * <p>
 457      *
 458      * @return the contents of this <code>ResourceBundle</code>.
 459      */
 460     @Override
 461     public Object[][] getContents() {
 462         return contents;
 463     }
 464 }


 343         {"Do.you.still.want.to.add.it.no.",
 344                 "Do you still want to add it? [no]:  "},
 345         {"Certificate.already.exists.in.system.wide.CA.keystore.under.alias.trustalias.",
 346                 "Certificate already exists in system-wide CA keystore under alias <{0}>"},
 347         {"Do.you.still.want.to.add.it.to.your.own.keystore.no.",
 348                 "Do you still want to add it to your own keystore? [no]:  "},
 349         {"Trust.this.certificate.no.", "Trust this certificate? [no]:  "},
 350         {"YES", "YES"},
 351         {"New.prompt.", "New {0}: "},
 352         {"Passwords.must.differ", "Passwords must differ"},
 353         {"Re.enter.new.prompt.", "Re-enter new {0}: "},
 354         {"Re.enter.password.", "Re-enter password: "},
 355         {"Re.enter.new.password.", "Re-enter new password: "},
 356         {"They.don.t.match.Try.again", "They don't match. Try again"},
 357         {"Enter.prompt.alias.name.", "Enter {0} alias name:  "},
 358         {"Enter.new.alias.name.RETURN.to.cancel.import.for.this.entry.",
 359                  "Enter new alias name\t(RETURN to cancel import for this entry):  "},
 360         {"Enter.alias.name.", "Enter alias name:  "},
 361         {".RETURN.if.same.as.for.otherAlias.",
 362                 "\t(RETURN if same as for <{0}>)"},


 363         {"What.is.your.first.and.last.name.",
 364                 "What is your first and last name?"},
 365         {"What.is.the.name.of.your.organizational.unit.",
 366                 "What is the name of your organizational unit?"},
 367         {"What.is.the.name.of.your.organization.",
 368                 "What is the name of your organization?"},
 369         {"What.is.the.name.of.your.City.or.Locality.",
 370                 "What is the name of your City or Locality?"},
 371         {"What.is.the.name.of.your.State.or.Province.",
 372                 "What is the name of your State or Province?"},
 373         {"What.is.the.two.letter.country.code.for.this.unit.",
 374                 "What is the two-letter country code for this unit?"},
 375         {"Is.name.correct.", "Is {0} correct?"},
 376         {"no", "no"},
 377         {"yes", "yes"},
 378         {"y", "y"},
 379         {".defaultValue.", "  [{0}]:  "},
 380         {"Alias.alias.has.no.key",
 381                 "Alias <{0}> has no key"},
 382         {"Alias.alias.references.an.entry.type.that.is.not.a.private.key.entry.The.keyclone.command.only.supports.cloning.of.private.key",


 409         {"Certificate.chain.in.reply.does.not.verify.",
 410                 "Certificate chain in reply does not verify: "},
 411         {"Top.level.certificate.in.reply.",
 412                 "Top-level certificate in reply:\n"},
 413         {".is.not.trusted.", "... is not trusted. "},
 414         {"Install.reply.anyway.no.", "Install reply anyway? [no]:  "},
 415         {"NO", "NO"},
 416         {"Public.keys.in.reply.and.keystore.don.t.match",
 417                 "Public keys in reply and keystore don't match"},
 418         {"Certificate.reply.and.certificate.in.keystore.are.identical",
 419                 "Certificate reply and certificate in keystore are identical"},
 420         {"Failed.to.establish.chain.from.reply",
 421                 "Failed to establish chain from reply"},
 422         {"n", "n"},
 423         {"Wrong.answer.try.again", "Wrong answer, try again"},
 424         {"Secret.key.not.generated.alias.alias.already.exists",
 425                 "Secret Key not generated, alias <{0}> already exists"},
 426         {"Please.provide.keysize.for.secret.key.generation",
 427                 "Please provide -keysize for secret key generation"},
 428 

 429         {"warning.not.verified.make.sure.keystore.is.correct",
 430             "WARNING: not verified. Make sure -keystore is correct."},
 431 
 432         {"Extensions.", "Extensions: "},
 433         {".Empty.value.", "(Empty value)"},
 434         {"Extension.Request.", "Extension Request:"},



 435         {"Unknown.keyUsage.type.", "Unknown keyUsage type: "},
 436         {"Unknown.extendedkeyUsage.type.", "Unknown extendedkeyUsage type: "},
 437         {"Unknown.AccessDescription.type.", "Unknown AccessDescription type: "},
 438         {"Unrecognized.GeneralName.type.", "Unrecognized GeneralName type: "},
 439         {"This.extension.cannot.be.marked.as.critical.",
 440                  "This extension cannot be marked as critical. "},
 441         {"Odd.number.of.hex.digits.found.", "Odd number of hex digits found: "},
 442         {"Unknown.extension.type.", "Unknown extension type: "},
 443         {"command.{0}.is.ambiguous.", "command {0} is ambiguous:"},
 444 
 445         // 8171319: keytool should print out warnings when reading or
 446         // generating cert/cert req using weak algorithms
 447         {"the.input", "The input"},
 448         {"the.output", "The output"},
 449         {"the.issuer", "The issuer"},
 450         {"reply", "Reply"},
 451         {"root", "Root"},
 452         {"one.in.many", "#%d of %d"},
 453         {"label.which", "%s %s"},
 454         {"alias.in.cacerts", "<%s> in cacerts"},
 455         {"with.weak", "%s (weak)"},
 456         {"key.bit", "%d-bit %s key"},
 457         {"key.bit.weak", "%d-bit %s key (weak)"},
 458         {".PATTERN.printX509Cert.with.weak",
 459                 "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}\nVersion: {9}"},
 460         {"PKCS.10.with.weak",
 461                 "PKCS #10 Certificate Request (Version 1.0)\n" +
 462                         "Subject: %s\nFormat: %s\nPublic Key: %s\nSignature algorithm: %s\n"},
 463         {"verified.by.s.in.s.weak", "Verified by %s in %s with a %s"},
 464         {"sigalg.risk", "The %s signature algorithm is considered a security risk."},
 465         {"whose.sigalg.risk", "%s's %s signature algorithm is considered a security risk."},
 466         {"key.risk", "A %s is considered a security risk."},
 467         {"whose.key.risk", "%s's %s is considered a security risk."},
 468     };
 469 
 470 
 471     /**
 472      * Returns the contents of this <code>ResourceBundle</code>.
 473      *
 474      * <p>
 475      *
 476      * @return the contents of this <code>ResourceBundle</code>.
 477      */
 478     @Override
 479     public Object[][] getContents() {
 480         return contents;
 481     }
 482 }
< prev index next >