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

Missing certificate for the Pubmatic endpoint #1190

Closed
moteus opened this issue Feb 12, 2020 · 8 comments
Closed

Missing certificate for the Pubmatic endpoint #1190

moteus opened this issue Feb 12, 2020 · 8 comments

Comments

@moteus
Copy link

moteus commented Feb 12, 2020

When i try tu make request to the new pubmatic enpoint i get error like.
Post https://hbopenbid.pubmatic.com/translator?source=prebid-server: x509: certificate signed by unknown authority
To fix it i just add certificate_file pointed to the system ca-bundle file

@bastianb-yl
Copy link

Could you elaborate on how you solved this? We see the same problem, but setting the config variable seems to do nothing.

@SyntaxNode
Copy link
Contributor

Did you symlink certificate_file to the system bundle?

@moteus
Copy link
Author

moteus commented Feb 12, 2020

I set certificates_file: "/etc/ssl/certs/ca-certificates.crt" in the pbs.yaml file.

@bastianb-yl
Copy link

I got it. We run an ECS cluster and stupid me was using the name of the crt file on the instance, and not the one from the container.

@moteus
Copy link
Author

moteus commented Feb 18, 2020

Can you please confirm that this is bug or not.
If not I just close the issue

@PubMatic-OpenWrap
Copy link
Contributor

Hi team,
There is a hardcoded list of certs in prebid-server that is pretty old. So, anyone who is not setting the certificate_file property would end up using this hardcoded list. For bidders having secure end-points configured with newer certificates, this could result in certificate errors like the one mentioned above.
I've raised a PR: #1201 where I have updated the hardcoded list of certs to the latest list for Ubuntu. This should fix the error you're getting while calling the PubMatic secure end-point.

@SyntaxNode
Copy link
Contributor

Thank you. Which version of Ubuntu are the certs from?

@PubMatic-OpenWrap
Copy link
Contributor

PubMatic-OpenWrap commented Feb 26, 2020

@SyntaxNode , the certs are from Ubuntu 18.04 (I took this OS version from prebid-server's Dockerfile)

@moteus moteus closed this as completed Feb 27, 2020
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

4 participants