Skip to content
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

Certificate error when downloading from hub.spigotmc.org #72

Open
jdbrowndev opened this issue Jul 15, 2024 · 0 comments
Open

Certificate error when downloading from hub.spigotmc.org #72

jdbrowndev opened this issue Jul 15, 2024 · 0 comments

Comments

@jdbrowndev
Copy link

When running a new container that needs to build the BuildTools.jar file, I get this error message:

Building spigot version (1.21) jar file, be patient
--2024-07-15 21:47:20--  https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
Resolving hub.spigotmc.org (hub.spigotmc.org)... 104.27.195.95, 104.27.196.95, 2606:4700:21::681b:c35f, ...
Connecting to hub.spigotmc.org (hub.spigotmc.org)|104.27.195.95|:443... connected.
ERROR: cannot verify hub.spigotmc.org's certificate, issued by 'CN=E6,O=Let\'s Encrypt,C=US':
  Issued certificate has expired.
To connect to hub.spigotmc.org insecurely, use `--no-check-certificate'.
Error: Invalid or corrupt jarfile BuildTools.jar
cp: cannot stat '/build-mc/Spigot/Spigot-Server/target/spigot-*.jar': No such file or directory

I was able to fix this error by adding ca-certificates to this line in the Dockerfile:

41     # install application
42     apt-get install -y wget git jq ca-certificates && \

@nimmis Let me know if you would like me to submit a pull request with this change. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant