sujin190
V2EX  ›  问与答

忽然发现,支付宝商家平台申请的不同账户给的证书公钥是一样的?

  •  
  •   sujin190 · Jan 15, 2016 · 3782 views
    This topic created in 3796 days ago, the information mentioned may be changed or developed.

    昨天突然有一段时间支付宝通知签名用公钥校验失败了,导致支付一直不成功,才注意到,申请的三个账户公钥居然是一样的。。

    8 replies    2016-01-15 17:52:51 +08:00
    gamexg
        1
    gamexg  
       Jan 15, 2016 via Android
    公钥?
    支付宝自身的公钥一样才正常啊。
    https 证书不管哪个浏览器访问给的都一样。
    Alchemistxxd
        2
    Alchemistxxd  
       Jan 15, 2016
    所以才叫公钥
    Tink
        3
    Tink  
    PRO
       Jan 15, 2016 via iPhone
    公钥不一样就完蛋了
    sujin190
        4
    sujin190  
    OP
       Jan 15, 2016
    @gamexg
    @Alchemistxxd
    @Tink
    支付宝商家平台申请的支付接口啊,上传了私钥才出来公钥,我一直以为是每个账户不一样的,不过说起来也没必要每个账户不一样,昨天坑爹的通知接口过来的用公钥校验就是过不去,挂了好多笔,今天一看又好了。。。
    gamexg
        5
    gamexg  
       Jan 15, 2016 via Android
    没用过支付宝接口,但是上传的应该不是私钥,而是你的公钥。服务器返回的是服务器的公钥。
    xinyewdz
        6
    xinyewdz  
       Jan 15, 2016
    支付宝的公钥都是一样的,每个账户上传的也是公钥。都是拿私钥加密,公钥解密。
    mkeith
        7
    mkeith  
       Jan 15, 2016
    @xinyewdz 反了吧???
    sujin190
        8
    sujin190  
    OP
       Jan 15, 2016
    @mkeith
    @gamexg
    @xinyewdz
    写错了。。。上传生成的公钥
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   907 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 22:23 · PVG 06:23 · LAX 15:23 · JFK 18:23
    ♥ Do have faith in what you're doing.