I did finally track down the problem.
in the most recent version of x509.py, in the definition of '__pyasn1_gen_san_general_names' (about line 350)
there is a comment:
# pyasn1 <= 0.3.7 needs explicit unwrap of ANY container # see https://pagure.io/freeipa/issue/7685
Apparently > 0.3.7 needs to *not* be unwrapped (I don't know what that means) but in my version of x509.py changing line 349:
der = decoder.decode(ext['extnValue'], asn1Spec=univ.OctetString())[0] > der = ext['extnValue']
fixed the problem.
In case someone else comes across this.
I did finally track down the problem.
in the most recent version of x509.py, in the definition of '__pyasn1_ gen_san_ general_ names' (about line 350)
there is a comment:
# pyasn1 <= 0.3.7 needs explicit unwrap of ANY container /pagure. io/freeipa/ issue/7685
# see https:/
Apparently > 0.3.7 needs to *not* be unwrapped (I don't know what that means) but in my version of x509.py changing line 349:
der = decoder. decode( ext['extnValue' ], asn1Spec= univ.OctetStrin g())[0]
>
der = ext['extnValue']
fixed the problem.
In case someone else comes across this.