• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

keytool problem

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to renew an SSL certificate with Verisign, and they recently upgraded their requirements to a minimum 2048 CSR keysize, so I can't use the old CSR I had originally.

When trying to generate a new CSR off of the original key pair, I am using:



and it creates the file just fine. However, when i try to submit it, Verisign says its a weak key and is not 2048 or above. So I tried the same command without the keysize option:



and it creates the exact same file. According to the documentation, it defaults to 1024.

So my question is, why is keytool not recognizing the keysize option?
 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

So my question is, why is keytool not recognizing the keysize option?



Well, what it should do is report an error because -keysize does not make any sense in the -certreq subcommand. Instead, it just silently ignores it. You probably are just recreating a CSR from your original old server key.

If you want to generate a new certificate request you must do it in two steps:

1) Generate a new keypair using the -genkeypair subcommand. With this subcommand you may specify a key size (-keysize) and an alias (-alias), and you must also specify the distinguished name that will appear in the CSR.

2) Generate the CSR with the -certreq subcommand and the same alias specified in 1.
 
Always! Wait. Never. Shut up. Look at this tiny ad.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic