You Are Here:

Community: Blogs

Risto Helin's Forum Nokia Blog

Certificates and validity periods

Rippe | 12 December, 2006 09:33

Have you noticed the validity period of different certificates? If you create a certificate with makekeys it is valid for a year. A Symbian DevCert is valid for a half a year. ID certificates (like the VeriSign ACS Publisher ID) are commonly valid for a year.

This brings in interesting scenarios: imagine that the ID certificate has expired but with it you use a valid devcert to sign a SIS... It should not install. What about the self made keys used with themes...

Please be careful with the expiration dates!

PS. You can see them easily in Windows by double clicking the cer-file.

RSSComments

Re: Certificates and validity periods

mgroeber9110 | 12/12/2006, 11:46

For developer certificates, the limtied lifetime is probably okay, because they are , but I personally believe that the restriction on makekeys certificates that may be used in released software is quite a problem, because we will probably have a lot SIS files half a year from now that have been put onto various web sites, CDs etc. and that will no longer install. Sort of a smaller version of the Y2K problem... ;-)

For now, the best thing seems to be to use something like OpenSSL to create certificates that are valid for as long as you like.

In the long run, I believe makekeys should be very explicit about the lifetime of a certificate it generates, and allow overriding the default expiry date.

Re: Certificates and validity periods

tote_b5 | 12/12/2006, 16:43

tote_b5 How do you make your own certificate with OpenSSL that will eventually be trusted by some root certificates provisioned on the phone?

Tote

Re: Certificates and validity periods

Rippe | 13/12/2006, 08:26

Rippe For software installation you don't. In practise someone would need to place the public key to the phone and assign it for software installation.

For SSL the story is bit different. You could do X509 certificates and for S60 they have to be DER encoded. Then you'd need to import them to the device:
1. Export the certificate in DER format (without private key)
2. If the certificate file extension is .cer change it to .der
3. Copy the certificate file to your Web server
4. Set the MIME type for the directory where the certificate is as application/x-x509-ca-cert
5. Use the web browser in the S60 device to browse the certificate
6. Import the certificate

Re: Certificates and validity periods

mgroeber9110 | 20/12/2006, 11:06

As Risto said, you can't make a cert yourself that is trusted by the roots on the phone, but you can make a self-signed certificate with a longer validity period.

For example, here are the commands I used with OpenSSL to create a 10-year self-signed certificate:

openssl genrsa 1024 >selfsigned.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key selfsigned.key >selfsigned.cer

(inspired by the instructions here: http://sial.org/howto/openssl/self-signed/)

Re: Certificates and validity periods

ern4lyf | 13/12/2006, 18:18

how can i get or make certificate key for my software 3.0 edition? i cannot make sis due of certificate is missing or not found.

Re: Certificates and validity periods

Rippe | 14/12/2006, 13:34

Rippe Please use the makekeys application. It comes with the SDK.

Re: Certificates and validity periods

sevanew | 20/12/2006, 14:30

please give me some advice about how i can solve a problem with Certificates:

I doing this steps:
1. Create a new project
2. Change the Active Build configuration to Phone.
3. Build project.
4. Start the *.sis file

after 4th the phone displaying the message: "Certificate is not correct. "

Re: Certificates and validity periods

Rippe | 20/12/2006, 16:26

Rippe That sounds like you have not signed the application. I cannot remember the exact location in Carbide where the certificate needs to be defined. But it is in the Properties. You can create a certificate pair with makekeys from the SDK.

The other thing could be that you have just signed an application which actually needs capabilities.

OR

You have a E-Series device and you have not set the device to allow uncertified application installation. This you can do from the App. manager - Options - Settings - Software installation: All
You must login to post comments. Login
 

Rate This

 
 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZdescriptionQSxThoughtsE20onE20makingE20theE20mobileE20eE78perienceE20uniE71ueE20doctordwarfE20E7cE2009E20MarchE2cE202007E2011E3a40E20AE20colleagueE20ofE20mineE20latelyE20askedE20meE20whatE20wouldE20beE20theE20mostE20importantE20SymbianE20OSE20CE2bE2bE20IE44E45E20featuresE20forE20supportingE20theE20agileE20softwareE20developmentE2eE20WhileE20agileE20processesE20areE20moreE20aboutE20peopleE20andE20interactionE2cE20thanE20aboutE20theE20toolsE2cE20aE20decentE20toolE20supportE20certainlyE20makesE20thingsE20easierE2eE20HereE20isE20aE20listE20ofE20thingsE20IE20wouldE20valueE20inE20theE20agileE2dawareE20CE2bE2bE20IE44E45E20inE20theE20orderE20ofE20decreasingE20priorityE2eE201E2eE20CommandE2dlineE20repeatabilityE20AgilE2eE2eE2eX qdcZidentifierQSxhttpE3aE2fE2fblogsE2eforumE2enokiaE2ecomE2fblogE2fartemE2dmarchenkosE2dforumE2dnokiaE2dblogE2f2007E2f03E2f09E2fagileE2dawareE2dsymbianE2dcE2dideE2fpageE2f2X qdcZpublisherQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2fc764fd1cE2d8b06E2d499aE2d9a6aE2d17c3903d5a65E2fforumE5fnokiaE5fcrawlerE5fagentX qdcZtitleQSxArtemE20MarchenkoE27sE20ForumE20NokiaE20BlogE20E7cE20AgileE2dawareE20SymbianE20CE2bE2bE20IE44E45X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZBlogContentQ qdcZtypeQUqfntypeZBlogE45ntryQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qrssZdescriptionQSxThoughtsE20onE20makingE20theE20mobileE20eE78perienceE20uniE71ueE20doctordwarfE20E7cE2009E20MarchE2cE202007E2011E3a40E20AE20colleagueE20ofE20mineE20latelyE20askedE20meE20whatE20wouldE20beE20theE20mostE20importantE20SymbianE20OSE20CE2bE2bE20IE44E45E20featuresE20forE20supportingE20theE20agileE20softwareE20developmentE2eE20WhileE20agileE20processesE20areE20moreE20aboutE20peopleE20andE20interactionE2cE20thanE20aboutE20theE20toolsE2cE20aE20decentE20toolE20supportE20certainlyE20makesE20thingsE20easierE2eE20HereE20isE20aE20listE20ofE20thingsE20IE20wouldE20valueE20inE20theE20agileE2dawareE20CE2bE2bE20IE44E45E20inE20theE20orderE20ofE20decreasingE20priorityE2eE201E2eE20CommandE2dlineE20repeatabilityE20AgilE2eE2eE2eX qfnZdistributionQUxhttpE3aE2fE2fblogsE2eforumE2enokiaE2ecomE2fX qfnZtopicQUqfnTopicZcppQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X qfnZtypeQUqfntypeZBlogContentQ qfnZtypeQUqfntypeZBlogE45ntryQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZupdatedQDx2007E2d11E2d19X qfnZuserE5ftagQSxsymbianE2dcE2bE2bX qmarsZdescriptionQSxThoughtsE20onE20makingE20theE20mobileE20eE78perienceE20uniE71ueE20doctordwarfE20E7cE2009E20MarchE2cE202007E2011E3a40E20AE20colleagueE20ofE20mineE20latelyE20askedE20meE20whatE20wouldE20beE20theE20mostE20importantE20SymbianE20OSE20CE2bE2bE20IE44E45E20featuresE20forE20supportingE20theE20agileE20softwareE20developmentE2eE20WhileE20agileE20processesE20areE20moreE20aboutE20peopleE20andE20interactionE2cE20thanE20aboutE20theE20toolsE2cE20aE20decentE20toolE20supportE20certainlyE20makesE20thingsE20easierE2eE20HereE20isE20aE20listE20ofE20thingsE20IE20wouldE20valueE20inE20theE20agileE2dawareE20CE2bE2bE20IE44E45E20inE20theE20orderE20ofE20decreasingE20priorityE2eE201E2eE20CommandE2dlineE20repeatabilityE20AgilE2eE2eE2eX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZBlogContentQ qrdfZtypeQUqfntypeZBlogE45ntryQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ