archethic-node icon indicating copy to clipboard operation
archethic-node copied to clipboard

AEWeb ssl certificate does not work on multiple / wildcard domain name

Open Neylix opened this issue 6 months ago • 0 comments

Describe the problem you discovered

Currently when an aeweb reference transaction contains an ssl certificate, the node ensure the host domain name is certified by the certificate. To do so it search for the subjectAltName and take the last one. It works well if the certificate only certify one domain name, but it fail if there is a wildcard or multiple domain name certified.

For exemple the domain name guide.ucopourlesnuls.fr will not be found as the node only take the last one which is dashboard.ucopourlesnuls.fr

image

Same for wildcard since we compare 2 strings. guide.ucopourlesnuls.fr != dashboard.ucopourlesnuls.fr != *.ucopourlesnuls.fr

Describe the solution you'd like

The check for the domain name should be more clever and find the domain name even with mutiple domain certified or a wildcard.

Epic

No response

Neylix avatar Aug 21 '24 18:08 Neylix