SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Mar 2006
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    keytool selfcert. Specifying validity more than 365 days. How?

    Hi,

    keytool, you can specify validity as 365 days. Could I do it for 2 or 3 years maybe? Is that doable using keytool? Any ideas ? Anyone????

    Code:
    keytool -selfcert -alias Test -genkey -keystore temp.keystore -keyalg RSA -validity 365
    Can we do for 3 yrs like this below?
    Code:
    keytool -selfcert -alias Test -genkey -keystore temp.keystore -keyalg RSA -validity 1095
    Thanks. If answer is no, what is a good option. Try to get certificate from a third party perhaps?

  2. #2
    SiteP0int Weazle hooknc's Avatar
    Join Date
    Dec 2004
    Location
    Socialist Republic of Boulder
    Posts
    937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For a self issued certificate you should be able to validate it for as long as you choose.
    baby steps... baby steps...

  3. #3
    SitePoint Wizard
    Join Date
    Apr 2007
    Posts
    1,399
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I have not created self certificate but my co-worker did and put the expiration date to 10 years. No problem.

  4. #4
    SitePoint Addict
    Join Date
    Mar 2006
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sg707 View Post
    I have not created self certificate but my co-worker did and put the expiration date to 10 years. No problem.
    So I guess, your co worker did

    Code:
    keytool -selfcert -alias Test -genkey -keystore
     temp.keystore -keyalg RSA -validity 3650
    Where 365 days in year * 10 = 3650 validity.

    So this will work right? I am thinking of making the validity for 20 years. :-)

  5. #5
    SiteP0int Weazle hooknc's Avatar
    Join Date
    Dec 2004
    Location
    Socialist Republic of Boulder
    Posts
    937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure, why not? Since it is a self signed certificate who cares?

    Why not make it a hundred?
    baby steps... baby steps...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •