收藏
回答

二级商户进件提交申请单提示平台私钥解密失败?

参数{"account_info":{"account_bank":"建设银行","account_name":"uquBTkoBqbuMMSgZsyyApzp9mHf5lHIb0QfF62iRfDUnSIXEkYrG/qE/5mxKsuIi2o6XsHrN/KxFaPsfBfziYz92i3pQFeCMngB3YiHM0D47/7UAmqh0lwzK1jilpbAOD2Sq2sCLI6t5To/qG0ldg1ge8P1HfFsLHuBit6JDp8q5mmmKfN5p7tdKTCMJoscMPk+2HIB7bHbFynhYkzUqfid64TWeHIf02NleKz10ncOruMcb1Tvlqo6PMYU07b3o+5b5VmfXc3szn78bUl464jl+QSHfndHXOJ5OwbwW0xli9lBP+L1zlMyvwuGDwVRQfXuSX3X0EodXu2WZ/srIng==","account_number":"neuAnHgrIswekJUUvm3Q3/bEJXRVi/K/oypR+YcFwqkFPcMXhdjn5lgnDhWqdOLRP9LrlaQlT7jIFd8fyBPV1sYthyszxwl/JijCl8DLK7TIDtWYOgEABN7fsfaChIf+y2sKBI00hDi9inUiPz6kvlRHv4sFm2wMOqhoCHv90oPxCMUj35fQS5C8Vc5qtbaA19t+4gfHpAAQ8BKfGMNgLt0rY3mJoncafSCfU0Nuu9ezNFkPeGUtiuys6odJVm1SXMAKbQQwix/sWRg+klIQovPU8z0kagfEO2yQpHf+u3cO4tnxoqyWnX23gkfwYN3rD5L+JCeD75PdK0vE03Ov3Q==","bank_account_type":"75","bank_address_code":"440300","bank_name":"中国建设银行股份有限公司深圳前进支行"},"contact_info":{"contact_id_card_number":"Apwmx/2l2fJVrEPwGsBDnfFwVS8VBjHk2L23W30WV4yFXqiOeuKgjiCe4pYRhZA3REYIpEYzDt3txE3/iHj3VH0h6ECsqbFLIbizBc6DBvx5wTVjG2+uGsgyR690AZKGxvq25/SyVEJKG5u+pRZswrwxzFMHk5jbaRsh55lLZKiHCP8KJbRsfd767TQ73tP6IG4v+ibDdPzJlr8/vdkMosyUpEhochjq2eSTWVmWrfKqeS/52HUPcGbzebL6uSI/DOJVCNKbILHTu6J6OkW961E3XJhkadDZ2eZNJgVOWMuuyn7wuw69MwXF4meA99W9ELFPFrTUtiXFI/DcWQz5oQ==","contact_id_doc_copy":"V1_zwQhPPV17qdkeYPWSFBnbR4GcubQHmNWq09g795WRZWbdkMIzO2qIcv03Go1FfkxTHYZDniZ1rbBdUq5fnaziQLJOzY9eQhmv6giwKWUAjk","contact_id_doc_copy_back":"V1_N8rMFw1wvgoAJisZ66C2lB4GcubQHmOfnxAZepBm19OHOKIz0Q-6IcrJ2Go1FfkxOUc4NglpAJkMeW_wZbf6rgLJOzY9eQhmv6giwKWUAjk","contact_id_doc_period_begin":"2021-12-25","contact_id_doc_period_end":"2041-12-25","contact_id_doc_type":"IDENTIFICATION_TYPE_MAINLAND_IDCARD","contact_name":"yFom1208tMw4+Ry70oeTAmlnr51aEDXcFFw/c9GAMHjTxdDITlaK/PPXRPDNFozNEJ8I2QeNMtDMUg7Q2H3wJf8PbqyPI35O/scOu3ihT3IuDMrG1p7zYk27hwwVD6i7IPCADTMnewDJhWZPcneCaEag1dc4/m6AdELqlDgvUZdvjZef+3FDs+DdI3f6xBHY90XI+18ikEvGtXI8d8EqHDDKq0L6zFWHgHwdmOMQRZfKhkPWGwV9YfOy4AcOHQ1kVrI4OYmRvetPEnGQx49ia8Ut9mqhBgRxh5Hs4YKnCPcNada4eGYdPD10o5NQXC9e6kSkRPHFq58b8SCaQIrsQw==","contact_type":"65","mobile_phone":"gK5rG1HhkZr3klW5gf0KKgkf0xKQFWSJrNqDgPN1WlsS7nNVjeLxC0vup5jXSfC4MQEE2fqhx+jvip6cZxE1ypvd1M8bSsxoFvfQes4j69FMFpdC+lIQkme8R6N50Z43y61I6tz6xZu0spilr6jefKG9r9k1lwPwQdWXVCbLRfa+H6DYLI6Iv+DQkfjsnY6Qjc5YGQzFYh+UZisQKcExyiCxYD729bLGCTmgPkO8QmdyY977MmYgK4mDMM8fTD+wT1X2L3vWFYrmdnPiqp2+b51Q+0NY6V8xOo9pPM3eigz9p6OVTU3+oVuwPwjCUZDHjo36JK9+CzBnJJmj14ztNg=="},"id_card_info":{"id_card_copy":"V1_zwQhPPV17qdkeYPWSFBnbR4GcubQHmNWq09g795WRZWbdkMIzO2qIcv03Go1FfkxTHYZDniZ1rbBdUq5fnaziQLJOzY9eQhmv6giwKWUAjk","id_card_name":"kXHMOOqC39GUAOUFbBgoxNupBN92rmddD5MatVd7Us525pvjWtv5mBzp/k5ESOFV5sEdBtN2vjkzDbwxlPSGE7RhYTMX6cQv63hNnBwwtNx8MXF4vi891o6yizIixNpW1fiQeUR+5SnmdJMsrtD0MQ0fqAo4YpyWJP9MtG7M+A7xqxQrxMRYQjF5mkwwbBuq0KHXgGrmonYRGUTbtl85s2eAsnpq2PGVpKXgXXMIgtOQPJq/8GX7HkF1D2b4Cn1BpGnU5VY0gci5vsbIZl2BoOEIGFKz/UWhCwGSJieyCkG7N79vLtiY5Ci8Sr3ZI0rJj2gYjqeX6mhFqqq4FRgTxg==","id_card_national":"V1_N8rMFw1wvgoAJisZ66C2lB4GcubQHmOfnxAZepBm19OHOKIz0Q-6IcrJ2Go1FfkxOUc4NglpAJkMeW_wZbf6rgLJOzY9eQhmv6giwKWUAjk","id_card_number":"vT/2tTCUvihHJ0dwNr0s5A+2oiO9ZnPcWszEOgMUMsbjtQrAEwb2S4qeR6Y2M4q69lak1BZrXSgTyt99taghxn2xOuZVHogcvRUNNxzWyynP+Utf32QL6/4JXp+CE0tZkYYPep14coSyF3hj05HsUsKf9A/rtx5KvGkqC5B6uIfBUelh7u6+RZSalpmkq9vSfhMun8ogJNfU6i57Wnb7dmZLzMB3gOycBSWz7BHkJ+hJ+bxTraqyNnT3LffGccEYa26XGsKDOg4zb3Oi4+AgMxaERlEu0S7alImgb/QD2jxJ53MjTe+t/gfKFarxHpX7gvWlTcowFVNejs8k3zbVbQ==","id_card_valid_time":"2041-12-25","id_card_valid_time_begin":"2021-12-25"},"id_doc_type":"IDENTIFICATION_TYPE_MAINLAND_IDCARD","merchant_shortname":"爱投票","organization_type":"2401","out_request_no":"2024_1729669553980","sales_scene_info":{"store_name":"爱投票"}}

结果:failed,resp code = 400,return body = {"code":"PARAM_ERROR","message":"平台私钥解密失败"}

请问是什么字段解密失败吗?还是哪里有问题?

回答关注问题邀请回答
收藏

2 个回答

  • Memory
    Memory
    10-23

    你需要用平台证书或者商户平台公钥进行敏感信息加密,你用错了加密证书

    10-23
    有用
    回复 5
    • 淞
      10-23
      是用公钥加密的,然后在证书工具上选择私密问价解密都可以解密成功
      10-23
      回复
    • Memory
      Memory
      10-23回复
      https://pay.weixin.qq.com/docs/partner/development/interface-rules/sensitive-data-encryption.html 认真阅读一下该文档
      10-23
      回复
    • 淞
      10-23
      是用这个官方文档的方法,有加密的方法,也有解密的方法,也是我理解的这样用平台公钥加密,商户私钥解密吧,我都有点懵了
      10-23
      回复
    • Memory
      Memory
      10-23回复
      微信支付又没有你的私钥,怎么对你加密的内容进行解密?
      10-23
      回复
    • Memory
      Memory
      10-23回复
      你拿平台公钥加密,用商户私钥解密,咋想的?
      10-23
      回复
  • 北望沣渭
    北望沣渭
    10-23

    你能从「解密工具」解密成功的「密文」,微信支付平台肯定是无法解密的,你得用「微信支付平台证书」或者「微信支付平台公钥」加密(商户API私钥是无法解密的)才行

    10-23
    有用
    回复 7
    • 淞
      10-23
      再证书工具上可以选择私钥文件然后解密的呀
      10-23
      回复
    • 淞
      10-23
      这样子不对吗
      10-23
      回复
    • 北望沣渭
      北望沣渭
      10-23回复
      肯定不对啊,亲,建议阅读官方文档加深理解: https://pay.weixin.qq.com/docs/partner/development/interface-rules/sensitive-data-encryption.html
      10-23
      回复
    • 淞
      10-23
      是用这个官方文档的方法,有加密的方法,也有解密的方法,也是我理解的这样用平台公钥加密,商户私钥解密吧,我都有点懵了
      10-23
      回复
    • 北望沣渭
      北望沣渭
      发表于移动端
      10-23回复
      非对称是指,没有配对的密钥时,密文是无法解密的;平台公钥加密的密文,你是不应该能解密的,记住这就行了写代码吧
      10-23
      回复
    查看更多(2)
登录 后发表内容