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

[Kiwi 12.7] Sending test mail reports "certificate verify failed: unable to get local issuer certificate" #3464

Open
sansanpetrov opened this issue Dec 20, 2023 · 0 comments

Comments

@sansanpetrov
Copy link

Description of problem

I am using official docker Kiwi-CE. I changed common.py file as it's described in manual to to set e-mail notifications.
My SMTP-server requires SSL.
Debug from command line like
docker exec -it kiwi_web /Kiwi/manage.py sendtestemail [email protected]
gives report:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

But all certificates are installed (I use defaults in container) and https is running correctly.

Version or commit hash (if applicable)

Kiwi-CE (docker) v.12.7

Steps to Reproduce

  1. Change common.py file to set e-mail configuration. Enable SSL.
  2. Run test e-mail via docker (as described in manual).

Actual results

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

Expected results

E-mail is received.

Additional info (Python traceback, logs, etc.)

Traceback (most recent call last):
File "/Kiwi/manage.py", line 12, in
execute_from_command_line(sys.argv)
File "/venv/lib64/python3.9/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/venv/lib64/python3.9/site-packages/django/core/management/init.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/venv/lib64/python3.9/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/venv/lib64/python3.9/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
File "/venv/lib64/python3.9/site-packages/django/core/management/commands/sendtestemail.py", line 35, in handle
send_mail(
File "/venv/lib64/python3.9/site-packages/django/core/mail/init.py", line 87, in send_mail
return mail.send()
File "/venv/lib64/python3.9/site-packages/django/core/mail/message.py", line 298, in send
return self.get_connection(fail_silently).send_messages([self])
File "/venv/lib64/python3.9/site-packages/django/core/mail/backends/smtp.py", line 127, in send_messages
new_conn_created = self.open()
File "/venv/lib64/python3.9/site-packages/django/core/mail/backends/smtp.py", line 85, in open
self.connection = self.connection_class(
File "/usr/lib64/python3.9/smtplib.py", line 1050, in init
SMTP.init(self, host, port, local_hostname, timeout,
File "/usr/lib64/python3.9/smtplib.py", line 255, in init
(code, msg) = self.connect(host, port)
File "/usr/lib64/python3.9/smtplib.py", line 341, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/lib64/python3.9/smtplib.py", line 1057, in _get_socket
new_socket = self.context.wrap_socket(new_socket,
File "/usr/lib64/python3.9/ssl.py", line 501, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib64/python3.9/ssl.py", line 1041, in _create
self.do_handshake()
File "/usr/lib64/python3.9/ssl.py", line 1310, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

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