This looks like the same problem as Internal SSL "certificate is not standards compliant" on macOS - #3 by matt