I was puzzling for a long time why my import service call in the terminal was always giving error.
Unexpected response from import service:
This is because the import service that you call is not SSL Certified and even if we add a self signed certificate, we would get the below error as
Unexpected response from import service:
Now to make it work, we need to enable https for the domain
self signed certificate
Open powershell in admin mode and provide the below script.
New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\my -DnsName "*.local" -FriendlyName "*.local" -NotAfter (Get-Date).AddYears(25)
and then accept the certificate thumprint with the below command.
jss deploy app -c -d --acceptCertificate "c2b764d098f7793f628f22af4ffc883cb92aafe0"

No comments:
Post a Comment