-
Notifications
You must be signed in to change notification settings - Fork 249
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
敏感信息加密 #14
Labels
enhancement
New feature or request
Comments
是希望有方法可以取到证书? |
是的,希望AutoUpdateCertificatesVerifier提供方法获取证书,用于加密敏感信息 |
同求啊,痛点。。。。 |
Merged
"某些情况下,微信支付会更新平台证书。这时,商户有多个微信支付平台证书可以用于加密。为了保证解密顺利,商户发起请求的HTTP头部中应包括证书序列号,以声明加密所用的密钥对和证书。 |
证书直接用getSerialNumber方法就可以拿到证书序列号,不过是BigInterger,还要再转一下 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
”开发者应当使用微信支付平台证书中的公钥,对上送的敏感信息进行加密。“
我采用AutoUpdateCertificatesVerifier自动更新证书,我需要拿到证书才能进行加密,但是AutoUpdateCertificatesVerifier中的verifier字段是private的,CertificatesVerifier中的private final HashMap<BigInteger, X509Certificate> certificates 也是私有的。目前我是采用反射的方式获取平台证书的。
The text was updated successfully, but these errors were encountered: