https://cypress.io logo
--record --key unable to get local issuer certific...
# i-need-help
b
I just upgraded from 10.9.0 to 12.5.1 version and I cannot run my scripts against my record key. I get the error "unable to get local issuer certificate" I am running the following command npm test "test": npm run scripts || npm run posttest "scripts": cypress run --env configFile=qa --record --key --browser chrome My project id is set in cypress.config.js and I double checked under project settings that I am using the correct record keys. also i have attempted to create a new key and get the same results. when I remove the --record --key from my scripts everything runs fine. Has anyone run into this issue and been able to resolve it?
a
According to this closed GitHub issue, Cypress does not issue our own CA store, https://download.cypress.io has a normal cert issued by Cloudflare: https://github.com/cypress-io/cypress/issues/1352 This error typically occurs when using a restrictive vpn. Here are a few resources that may help: - Check if you have these URLs added to your VPN: https://docs.cypress.io/faq/questions/dashboard-faq#I-m-working-at-a-restrictive-VPN-Which-subdomains-do-I-have-to-allow-on-my-VPN-for-the-Dashboard-to-work-properly - StackOverflow: https://stackoverflow.com/questions/9626990/receiving-error-error-ssl-error-self-signed-cert-in-chain-while-using-npm - If your proxy does not allow whitelisting the https://download.cypress.io domain, you could install the binary to help circumvent the firewall by setting CYPRESS_BINARY_VERSION=/some/path/to/cypress.zip as an environment variable: https://docs.cypress.io/guides/references/advanced-installation#Install-binary