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

Integration with Lego #56

Open
amandahla opened this issue Jan 22, 2025 · 0 comments · May be fixed by #59
Open

Integration with Lego #56

amandahla opened this issue Jan 22, 2025 · 0 comments · May be fixed by #59

Comments

@amandahla
Copy link
Contributor

Bug Description

I'm adding this as an issue so it can be discussed.

While integrating Haproxy with Lego I found two issues:

  1. The CSR is not found by Lego as described in here.
    Workaround: Manually change mode to UNIT. Is there a reason for APP being used instead?

  2. Lego provides in the relation the certificate and the chain. Haproxy was set only with the certificate, causing this error while trying to access it via curl:

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Workaround: So I manually copied the certificate and chain content and paste in the file /var/lib/haproxy/certs/ircbridge-internal.staging.canonical.com.pem

To Reproduce

Relate Haproxy with Lego

Environment

App                        Version  Status  Scale  Charm                     Channel      Rev  Exposed  Message
haproxy2                            active      1  haproxy                   2.8/edge     116  yes      
irc-bridge                          active      1  irc-bridge                latest/edge    9  yes      
lego                                active      1  lego                      4/edge        34  no       1/1 certificate requests are fulfilled
postgresql                 14.12    active      1  postgresql                14/stable    468  yes      
self-signed-certificates2           active      1  self-signed-certificates  latest/edge  234  no 

Relevant log output

...

Additional context

No response

@Thanhphan1147 Thanhphan1147 linked a pull request Jan 24, 2025 that will close this issue
6 tasks
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 a pull request may close this issue.

1 participant