-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Error downloading packs with corporate certificate in chain #13132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for your question. The codeql mac os binary is a jar file, so most Java solutions should work. codeql ships with its own jre that is located at It looks like you are running codeql on your local machine (ie- not in code scanning or on a CI system). Is that correct? I will ask internally if anyone has solved this problem in the past. |
Can you try adding your self-signed certificate to the JVM's cert store? Here are some instructions. https://www.baeldung.com/jvm-certificate-store-errors You can get more info on what precisely is going wrong by enabling SSL debug logging: |
Sorry for the slow reply.
Yes I'm running it locally.
I tried to do this before but since I don't have any Java tooling installed I don't have a |
You can try setting |
Facing same issue with Windows Local machine. Here I am trying to install/download cpp/queries packages.
Can anyone please help me on this? |
There's not much more I can suggest other than going through the steps above. Please confirm to me that you've tried them. |
|
I have the same problem but on Windows on one machine at a customer. I tried to use the keytool as mentioned above to import the pem file but the error persists. Is there a way to download and install these packages manually? |
@proitcon, this is an old issue. Can you please open a new one and someone on our team can help you? Include the error messages and things you have tried already. |
When I try to run
codeql pack download ...
I get the following error.This is on a computer that has a self signed certificate in the chain. For most of the tools I use there's a way to include these certificates with an environment variable or enable it to pick up the configuration with the certificate installed. I can't figure out a way to do that in this case though.
A lot of the examples online are specific to fixing this issue for JRE/JDK which I don't have, I'm just running the codeql mac os binary.
Thanks,
The text was updated successfully, but these errors were encountered: