AuthenticatAsClient fails with CRYPT_E_ASN1_BADTAG
问题 I have written a .NET application that tries to do mutual authentication with an ECC client certificate (curve is brainpoolP384r1). The certificate is signed by a PKI and when I look at it in an ASN1 viewer it seems to be perfectly valid. I get the certificate byte data for this the following way: Console.WriteLine($"Certificate:{BitConverter.ToString(cert.RawData).Replace("-","")}"); Looking at the certificate in the MMC console it also appears to be valid. However, when I try to use it to