This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
The generated server certificate in Complement images has no Subject Alternative Name #12615
Labels
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Milestone
Description
When constructing a Complement Docker image for Synapse, we generate a server certificate which contains only a Common Name but no Subject Alternative Name (SAN). Dendrite doesn't like this, so refuses to communicate with such a Synapse.
I encountered this problem because I'm fiddling with trying to extend Complement to support spinning up federations composed of multiple different HS implementations. Synapse <-> Synapse and Dendrite <-> Dendrite work fine, but Synapse <-> Dendrite configurations currently fail to communicate due to this.
So to solve this, we need to include a SAN in there. Generating a certificate with SAN using
openssl
is a bit fiddly but doable, though it looks to be impossible to achieve using just the command-line arguments, so we'd need to bundle anopenssl
config file. Another option would be to generate the server certificate using something other than theopenssl
utility, e.g. using Python'scryptography
package.The text was updated successfully, but these errors were encountered: