Comments (5)
是希望有方法可以取到证书?
from wechatpay-apache-httpclient.
是的,希望AutoUpdateCertificatesVerifier提供方法获取证书,用于加密敏感信息
from wechatpay-apache-httpclient.
同求啊,痛点。。。。
from wechatpay-apache-httpclient.
"某些情况下,微信支付会更新平台证书。这时,商户有多个微信支付平台证书可以用于加密。为了保证解密顺利,商户发起请求的HTTP头部中应包括证书序列号,以声明加密所用的密钥对和证书。
商户上送敏感信息时使用微信支付平台公钥加密,证书序列号包含在请求HTTP头部的Wechatpay-Serial"。
目前verifier.getValidCertificate();只返回了证书,没有返回证书序列号,敏感信息加密的数据提交的时候需要带上请求头Wechatpay-Serial,作者应该把证书序列号也一起返回出来
from wechatpay-apache-httpclient.
证书直接用getSerialNumber方法就可以拿到证书序列号,不过是BigInterger,还要再转一下
from wechatpay-apache-httpclient.
Related Issues (20)
- httpClient库能替换下吗?
- sdk如何调起sign的方法 HOT 3
- 对小程序支付生成的httpClient进行代理设置不生效 HOT 11
- 请问如何构造测试回调数据? HOT 10
- 不支持httpClient5版本库 HOT 1
- 如何正确初始化CloseableHttpClient?何时关闭CloseableHttpClient? HOT 3
- 使用DefaultHttpClientBuilder构造出来的HttpClient需要关闭吗? HOT 1
- 使用了定时更新平台证书功能,并且使用Verifier在调用接口时获取平台证书。但是怎么获取平台证书序列号以满足接口对header里的Wechatpay-Serial的需求呢 HOT 9
- 为什么我用certificate.getSerialNumber()获取到的序列号和正确的序列号不一样
- empty [Wechatpay-Serial] 应答的微信支付签名验证失败
- 仅签名不验签 HOT 1
- 日志打印body内容乱码 HOT 1
- 回调验签失败 HOT 2
- AutoUpdateCertificatesVerifier弃用后有其他替代方案吗 HOT 1
- No 0.4.9 in Maven Central HOT 1
- Start
- 是否提供一个Spring Boot 3.0的支持版本? HOT 4
- 【Help】使用demo中的例子上传图片返回400 badrequest HOT 4
- 支付回调验签报错 HOT 2
- 使用时Verifier没有办法初始化在springboot中 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechatpay-apache-httpclient.