[GH-ISSUE #216] Email SSL connection doesn't work in docker container #77

Closed
opened 2026-02-27 08:15:06 +03:00 by kerem · 1 comment
Owner

Originally created by @crobibero on GitHub (Jul 4, 2022).
Original GitHub issue: https://github.com/lldap/lldap/issues/216

Description: When attempting to send a password reset email this error is generated:

2022-07-04T18:23:31.689483321+00:00 WARN     │  ┕━ 🚧 [warn]: Error sending email: lettre::transport::smtp::Error {
    kind: Connection,
    source: Failure(
        Ssl(
            Error {
                code: ErrorCode(
                    1,
                ),
                cause: Some(
                    Ssl(
                        ErrorStack(
                            [
                                Error {
                                    code: 337047686,
                                    library: "SSL routines",
                                    function: "tls_process_server_certificate",
                                    reason: "certificate verify failed",
                                    file: "ssl/statem/statem_clnt.c",
                                    line: 1919,
                                },
                            ],
                        ),
                    ),
                ),
            },
            X509VerifyResult {
                code: 20,
                error: "unable to get local issuer certificate",
            },
        ),
    ),
}

Fix: Install the ca-certificates package

eg: docker exec -it -u root lldap bash -c "apt update && apt install ca-certificates"

Where lldap is the container name

Originally created by @crobibero on GitHub (Jul 4, 2022). Original GitHub issue: https://github.com/lldap/lldap/issues/216 Description: When attempting to send a password reset email this error is generated: ``` 2022-07-04T18:23:31.689483321+00:00 WARN │ ┕━ 🚧 [warn]: Error sending email: lettre::transport::smtp::Error { kind: Connection, source: Failure( Ssl( Error { code: ErrorCode( 1, ), cause: Some( Ssl( ErrorStack( [ Error { code: 337047686, library: "SSL routines", function: "tls_process_server_certificate", reason: "certificate verify failed", file: "ssl/statem/statem_clnt.c", line: 1919, }, ], ), ), ), }, X509VerifyResult { code: 20, error: "unable to get local issuer certificate", }, ), ), } ``` Fix: Install the `ca-certificates` package eg: `docker exec -it -u root lldap bash -c "apt update && apt install ca-certificates"` Where `lldap` is the container name
kerem 2026-02-27 08:15:06 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@nitnelave commented on GitHub (Jul 5, 2022):

Fixed by https://github.com/nitnelave/lldap/pull/217

<!-- gh-comment-id:1175227526 --> @nitnelave commented on GitHub (Jul 5, 2022): Fixed by https://github.com/nitnelave/lldap/pull/217
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#77
No description provided.