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

微信平台证书在快过期时问题 #256

Open
herepy opened this issue Jun 9, 2022 · 3 comments
Open

微信平台证书在快过期时问题 #256

herepy opened this issue Jun 9, 2022 · 3 comments
Labels
good first issue Good for newcomers

Comments

@herepy
Copy link

herepy commented Jun 9, 2022

旧证书过期前5天至过期当天,新证书开始逐步放量用于应答和回调的签名。商户需根据证书序列号,使用对应版本的平台证书。目前是不是还没有处理新旧证书同时存在的问题,我看代码里没有做证书序列号区分证书相关的

@iGoogle-ink
Copy link
Member

已经处理过了,微信的证书是拿取最新的证书,支付宝的好像没处理过

@herepy
Copy link
Author

herepy commented Jun 11, 2022

已经处理过了,微信的证书是拿取最新的证书,支付宝的好像没处理过

如果新旧证书都生效的情况下,微信系统回调过来用的是旧证书,业务系统拿最新的证书去解析这时是不对的

@December1208
Copy link
Contributor

已经处理过了,微信的证书是拿取最新的证书,支付宝的好像没处理过

如果新旧证书都生效的情况下,微信系统回调过来用的是旧证书,业务系统拿最新的证书去解析这时是不对的

确实是这样,这里应该存储所有生效的证书,然后根据微信系统回调信息,选择正确的证书

@iGoogle-ink iGoogle-ink added the good first issue Good for newcomers label Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants