Skip to main content
emiliep89320758
Inspiring
March 26, 2018
Answered

Cannot package/install zxp since few days

  • March 26, 2018
  • 2 replies
  • 2827 views

Hello,

I've got a problem since a few days.
I use grunt-cep to package my plugin. It worked since a lot of time.

Users had a zxp that used to work. But now if they uninstall it, they cannot install it anymore :
"Installation failed because the extension does not contain a valid code signature."

I cannot package again my plugin because now I have this problem :

"Creating ZXP package at staging\package\a91a126f-8478-400c-9c8b-a7e07d590092.zxp...ERROR
Error - Certificate is expired or not yet valid. Please check certificate validity.

Fatal error: Unable to create ZXP package."

Is there something about certificate ?

Perhaps mine is outdated but I don't know anything about that .. Another person worked on it years ago

Any ideas please ?

Thanks

This topic has been closed for replies.
Correct answer Trevor:

Here's a simple example

To create a certificate

ZXPSignCmd -selfSignedCert <countryCode> <stateOrProvince> <organization> <commonName> <password> <outputPath.p12> -validityDays <validityDays>

./ZXPSignCmd -selfSignedCert UK London Creative-Scripts Trevor 123@4 /Users/Trevor/repositories/myCert.p12 -validityDays 5000

Replace  ./ZXPSignCmd  with the correct path to ZXPSignCmd make sure you have downloaded the latest version.

Once you have your certificate you can sign with it.

ZXPSignCmd -sign <inputDirectory> <outputZxp> <p12> <p12Password> -tsa <timestampURL>

./ZXPSignCmd -sign /Users/Trevor/repositories/CSTK/com.creative-scripts.cstk /Users/Trevor/repositories/CSTK/com.creative-scripts.cstk.zxp /Users/Trevor/repositories/myCert.p12 123@4 -tsa http://timestamp.comodoca.com/authenticode

Change the paths and fields as needed

HTH

Trevor

2 replies

Trevor:
Trevor:Correct answer
Legend
March 28, 2018

Here's a simple example

To create a certificate

ZXPSignCmd -selfSignedCert <countryCode> <stateOrProvince> <organization> <commonName> <password> <outputPath.p12> -validityDays <validityDays>

./ZXPSignCmd -selfSignedCert UK London Creative-Scripts Trevor 123@4 /Users/Trevor/repositories/myCert.p12 -validityDays 5000

Replace  ./ZXPSignCmd  with the correct path to ZXPSignCmd make sure you have downloaded the latest version.

Once you have your certificate you can sign with it.

ZXPSignCmd -sign <inputDirectory> <outputZxp> <p12> <p12Password> -tsa <timestampURL>

./ZXPSignCmd -sign /Users/Trevor/repositories/CSTK/com.creative-scripts.cstk /Users/Trevor/repositories/CSTK/com.creative-scripts.cstk.zxp /Users/Trevor/repositories/myCert.p12 123@4 -tsa http://timestamp.comodoca.com/authenticode

Change the paths and fields as needed

HTH

Trevor

Trevor:
Legend
March 28, 2018

Moved to  Extensions / Add-ons Development

See the links there for easy signing of extensions.