goauthentik / goauthentik/authentik

Facing SSL certificate issue while attempting to create a generic webhook in Authentik's notification transport.

Open
#6,586 11 comments 0 reactions 1 assignee Claimed by @dewi-tik View on GitHub
needs_documentation question
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

**Describe your question/**
Facing SSL certificate issue while attempting to create a generic webhook in Authentik's notification transport to external API.

**Relevant infos**
Problem Description: Whenever I try to create a generic webhook and configure it to hit an external Spring Boot API, I encounter an SSL error. The error message indicates that there's a certificate verification problem.

"HTTPSConnectionPool(host='example.com', port=443): Max retries exceeded with url: /api/rest/v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:992)')))"

Steps Taken: I have tried uploading the required SSL certificates through the provided certificates interface in Authentik. However, despite this, the problem persists.
I am able to hit a curl command to my spring boot app from the authetik server console successfully.

**Logs**
**Browser dev console logs** - "HTTPSConnectionPool(host='example.com', port=443): Max retries exceeded with url: /api/rest/v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:992)')))"
**Server logs** -
{"event": "Internal Server Error: /api/v3/events/transports/23011638-bfc4-4afc-bb63-7969d92f4812/test/", "level": "error", "logger": "django.request", "timestamp": 1692612295.386091}

**Version and Deployment (please complete the following information):**

- authentik version: 2023.3.1
- Deployment: docker, K8s

**Additional context**
Steps Taken: I have tried uploading the required SSL certificates through the provided certificates interface in Authentik. However, despite this, the problem persists.
I am able to hit a curl command to my spring boot app from the authetik server console successfully.

Desired Outcome: I am looking for guidance on how to properly configure the webhook to utilize the uploaded SSL certificates for certificate verification when communicating with the external Spring Boot API.
or is there a way if we can write a python script to bypass the certs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.