Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 使用证书信任链验证通过API下载的微信支付平台证书 #138

Merged
merged 8 commits into from
Feb 24, 2023

Conversation

xy-peng
Copy link
Contributor

@xy-peng xy-peng commented Feb 16, 2023

之前自动下载证书后的流程是:

  1. 解密
  2. 第一次下载到的证书无法验签,认为是有效的
  3. 后续的下载应答,会使用已经下载的验证验证签名

现在的流程:解密后,使用证书信任链验证证书是由 Tenpay.com Root CA 颁发。只要证书是受信任的,也没有必要对应答验签了。

证书信任链在程序中只使用了最上一级,它们是不变的,没必要每次都验证。

docs: 把注释写通顺
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@xy-peng xy-peng merged commit 49c5db5 into main Feb 24, 2023
@xy-peng xy-peng deleted the feat_certpathvalidator branch February 24, 2023 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants