Getting-Started-guides
Getting-Started-guides copied to clipboard
Unable to install a self-signed CEP extension using ExManCmd.exe.
Topic
This is an issue regarding:
- [ ] The guides contained within this repo.
Versions
- [ ] ZXPSignCmd 4.1.1
- [ ] ExManCmd: downloaded from this page.
- [ ] CEP 8
- [ ] Photoshop CC 2018
- [ ] Windows 7/10
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
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.