Giter Club home page Giter Club logo

Comments (5)

xy-peng avatar xy-peng commented on May 25, 2024

是希望有方法可以取到证书?

from wechatpay-apache-httpclient.

saturdaysunny avatar saturdaysunny commented on May 25, 2024

是的,希望AutoUpdateCertificatesVerifier提供方法获取证书,用于加密敏感信息

from wechatpay-apache-httpclient.

dongfz avatar dongfz commented on May 25, 2024

同求啊,痛点。。。。

from wechatpay-apache-httpclient.

saturdaysunny avatar saturdaysunny commented on May 25, 2024

"某些情况下,微信支付会更新平台证书。这时,商户有多个微信支付平台证书可以用于加密。为了保证解密顺利,商户发起请求的HTTP头部中应包括证书序列号,以声明加密所用的密钥对和证书。
商户上送敏感信息时使用微信支付平台公钥加密,证书序列号包含在请求HTTP头部的Wechatpay-Serial"。
目前verifier.getValidCertificate();只返回了证书,没有返回证书序列号,敏感信息加密的数据提交的时候需要带上请求头Wechatpay-Serial,作者应该把证书序列号也一起返回出来

from wechatpay-apache-httpclient.

xy-peng avatar xy-peng commented on May 25, 2024

证书直接用getSerialNumber方法就可以拿到证书序列号,不过是BigInterger,还要再转一下

from wechatpay-apache-httpclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.