.NET Core 集成微信支付签名错误
The provided data is tagged with 'Universal' class value '16', but it should have been 'Universal' class value '2'.
The provided data is tagged with 'Application' class value '13', but it should have been 'Universal' class value '16'.
报错原因
私钥用错了
微信支付证书压缩包里面有两个pem文件:apiclient_cert.pem和apiclient_key.pem。私钥应该用apiclient_key.pem,如果你使用了apiclient_cert.pem就会报上面标红色的错误。
解决方案
使用apiclient_key.pem文件里面的内容即可。
标签:Core,微信,apiclient,value,pem,NET,class From: https://www.cnblogs.com/dawenyang/p/16865549.html