I am in the process of enabling SAML authentication for my self-hosted environment. However, I'm encountering an issue when creating a private certificate (for the environment variable in Gotrue => GOTRUE_SAML_PRIVATE_KEY). I keep getting the error message Failed to load configuration: SAML private key not in PKCS#1 format. In the source code, it fails at the following function x509.ParsePKCS1PrivateKey(bytes). Does anyone happen to have an idea?
I created the certificate as follows:
openssl genrsa -out private-key.pem 4096
openssl rsa -in private-key.pem -outform DER -out private-key.der
base64 -w 0 private-key.der > private-key-base64.der