• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

keytool problem

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Shiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!