The value of oidSignatureDSAWithSHA256 is currently defined as:
oidSignatureDSAWithSHA256 = asn1.ObjectIdentifier{2, 16, 840, 1, 101, 4, 3, 2}
It should be:
oidSignatureDSAWithSHA256 = asn1.ObjectIdentifier{2, 16, 840, 1, 101, 3, 4, 3, 2}
per https://tools.ietf.org/html/rfc5758#section-3.1:
id-dsa-with-sha256 OBJECT IDENTIFIER ::= { joint-iso-ccitt(2)
country(16) us(840) organization(1) gov(101) csor(3)
algorithms(4) id-dsa-with-sha2(3) 2 }.
The value of
oidSignatureDSAWithSHA256is currently defined as:It should be:
per https://tools.ietf.org/html/rfc5758#section-3.1: