Adobe-CEP / Getting-Started-guides

Getting Started guides and samples for CEP extensions
Apache License 2.0
548 stars 92 forks source link

Unable to install a self-signed CEP extension using ExManCmd.exe. #24

Open RockWithBoA opened 4 years ago

RockWithBoA commented 4 years ago

Topic

This is an issue regarding:

Versions

Description of the issue

Installing a self-signed ZXP extension using command line command:

E:\Desktop\ExManCmd_win\ExManCmd.exe /install CepTest01.zxp

But it returns the following error:

Installing extension with file path = CepTest01.zxp Failed to install, status = -402!

Proposed solution or attempted solutions that failed

Resigned and confirmed there is not any error reported when packaging the extension using ZXPSignCmd.

The certificate used and the self-signed CEP extension are attached. certf_ext.zip

ErinFinnegan commented 2 years ago

Hi there!

This is something that the CEP team is investigating; it seems specific to Windows and Photoshop. Here are the notes I've got:

Node doesn't allow the self-signed certificate authorized connections. It is recommended to use a proper SSL Cert from a trusted source.

Although for development we could use a few flags for node to bypass these checks(Try: rejectUnauthorize = false; Check https://stackoverflow.com/questions/45088006/nodejs-error-self-signed-certificate-in-certificate-chain )

Conclusion: Please use a trusted certificate in production & try rejectUnauthorize = false for developments purposes to bypass this problem.

I know that certificates from an authorized source can be excessively expensive, so I'm hoping the CEP is able to solve this issue soon.

I the meantime, please try the workaround mentioned above.