收藏
回答

微信支付 APIv3 平台证书的命令行下载失败?

使用命令行下载微信支付 APIv3 平台证书失败报错如下:

sh: /www/wwwroot/***/vendor/bin/CertificateDownloader.php: Permission denied

Script CertificateDownloader.php handling the __exec_command event returned with error code 126

-k -m -s -f -各个参数都已填写正确,不知是何原因???


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

4 个回答

  • 十年
    十年
    2023-09-21

    Warning: Module 'ftp' already loaded in Unknown on line 0


    Warning: PHP Startup: Unable to load dynamic library 'D:\phpstudy_pro\Extensions\php\php7.1.9nts\ext\php_interbase.dll' - 找不到指定的模块。

     in Unknown on line 0


    Warning: PHP Startup: Unable to load dynamic library 'D:\phpstudy_pro\Extensions\php\php7.1.9nts\ext\php_oci8_12c.dll' - 找不到指定的模块。

     in Unknown on line 0


    Warning: PHP Startup: Unable to load dynamic library 'D:\phpstudy_pro\Extensions\php\php7.1.9nts\ext\php_pdo_firebird.dll' - 找不到指定的模块。

     in Unknown on line 0


    Warning: PHP Startup: Unable to load dynamic library 'D:\phpstudy_pro\Extensions\php\php7.1.9nts\ext\php_pdo_oci.dll' - 找不到指定的模块。

     in Unknown on line 0


    Warning: PHP Startup: Unable to load dynamic library 'D:\phpstudy_pro\Extensions\php\php7.1.9nts\ext\php_zip.dll' - 找不到指定的模块。

     in Unknown on line 0


    Warning: openssl_sign(): supplied key param cannot be coerced into a private key in F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\wechatpay\wechatpay\src\Crypto\Rsa.php on line 313

    Signing the input $message failed, please checking your $privateKey whether or nor correct.

    #0 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\wechatpay\wechatpay\src\ClientJsonTrait.php(73): WeChatPay\Crypto\Rsa::sign('GET\n/v3/certifi...', '-----BEGIN CERT...')

    #1 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\guzzlehttp\guzzle\src\Middleware.php(233): WeChatPay\ClientDecorator::WeChatPay\{closure}(Object(GuzzleHttp\Psr7\Request))

    #2 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\guzzlehttp\guzzle\src\Middleware.php(29): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)

    #3 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\guzzlehttp\guzzle\src\RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)

    #4 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\guzzlehttp\guzzle\src\Middleware.php(59): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)

    #5 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\guzzlehttp\guzzle\src\Middleware.php(250): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)

    #6 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\wechatpay\wechatpay\src\ClientJsonTrait.php(187): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)

    #7 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\guzzlehttp\guzzle\src\Middleware.php(250): WeChatPay\ClientDecorator::WeChatPay\{closure}(Object(GuzzleHttp\Psr7\Request), Array)

    #8 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\guzzlehttp\guzzle\src\HandlerStack.php(71): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)

    #9 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\guzzlehttp\guzzle\src\Client.php(351): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)

    #10 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\guzzlehttp\guzzle\src\Client.php(162): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)

    #11 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\wechatpay\wechatpay\src\ClientDecorator.php(148): GuzzleHttp\Client->requestAsync('GET', Object(GuzzleHttp\Psr7\Uri), Array)

    #12 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\wechatpay\wechatpay\src\BuilderTrait.php(69): WeChatPay\ClientDecorator->requestAsync('GET', 'v3/certificates', Array)

    #13 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\wechatpay\wechatpay\bin\CertificateDownloader.php(99): class@anonymous->getAsync(Array)

    #14 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\wechatpay\wechatpay\bin\CertificateDownloader.php(46): CertificateDownloader->job(Array)

    #15 F:\WWW\sanguo\liwanpeng\h5\bfr\vendor\wechatpay\wechatpay\bin\CertificateDownloader.php(235): CertificateDownloader->run()

    #16 {main}

    就是下载不下来 也不知道为什么?求解答

    2023-09-21
    有用
    回复
  • 科维列夫斯坦尼斯拉夫斯基
    科维列夫斯坦尼斯拉夫斯基
    2023-06-20

    Warning: Use of undefined constant ROOT_PATH - assumed 'ROOT_PATH' (this will throw an Error in a future version of PHP) in C:\wwwroot\new.iwateiot.com\vendor\karsonzhang\fastadmin-addons\src\common.php on line 17


    Warning: Use of undefined constant DS - assumed 'DS' (this will throw an Error in a future version of PHP) in C:\wwwroot\new.iwateiot.com\vendor\karsonzhang\fastadmin-addons\src\common.php on line 17


    Fatal error: Uncaught Error: Class 'think\Config' not found in C:\wwwroot\new.iwateiot.com\thinkphp\library\think\Route.php:290

    Stack trace:

    #0 C:\wwwroot\new.iwateiot.com\thinkphp\library\think\Route.php(265): think\Route::setRule('addons/:addon/[...', '\\think\\addons\\R...', '*', Array, Array, NULL)

    #1 C:\wwwroot\new.iwateiot.com\thinkphp\library\think\Route.php(498): think\Route::rule('addons/:addon/[...', '\\think\\addons\\R...', '*', Array, Array)

    #2 C:\wwwroot\new.iwateiot.com\vendor\karsonzhang\fastadmin-addons\src\common.php(20): think\Route::any('addons/:addon/[...', '\\think\\addons\\R...')

    #3 C:\wwwroot\new.iwateiot.com\vendor\composer\autoload_real.php(41): require('C:\\wwwroot\\new....')

    #4 C:\wwwroot\new.iwateiot.com\vendor\composer\autoload_real.php(45): {closure}('488987c28e9b5e9...', 'C:\\wwwroot\\new....')

    #5 C:\wwwroot\new.iwateiot.com\vendor\autoload.php(25): ComposerAutoloaderInit73f9e72fede2c36621e52f7b610bbb65::getLoader()

    #6 C:\wwwroot\new.iwateiot.com\vendor\wechatpay\wechatpay\bin\CertificateDow in C:\wwwroot\new.iwateiot.com\thinkphp\library\think\Route.php on line 290

    翻译过来就是

    警告:在C:\wwwroot\new.iwatiot.com\vendor\karsonzhang\fastadmin addons\src\common.PHP的第17行使用未定义的常量ROOT_PATH-假定为“ROOT_PATH'(这将在未来版本的PHP中引发错误)




    警告:在C:\wwwroot\new.iwatiot.com\vendor\karsonzhang\fastadmin addons\src\common.PHP的第17行使用未定义的常量DS-假定为“DS”(这将在PHP的未来版本中引发错误)




    致命错误:未捕获错误:在C:\wwwroot\new.iwateiot.com\thinkphp\library\think\Route.php中找不到类“think\Config”:290


    堆栈跟踪:


    #0 C:\wwwroot\new.iwatiot.com\thinkphp\library\think\Route.php(265):think\Route::setRule('addons/:addon/[…','\\think\\addons\\R..','*',Array,Array,NULL)


    #1 C:\wwwroot\new.iwateiot.com\thinkphp\library\think\Route.php(498):think\Route::rule('addons/:addon/[…','\\think\\addons\\R..','*',Array,Array)


    #2 C:\wwwroot\new.iwatiot.com\vendor\karsonzhang\fastadmin addons\src\common.php(20):think\Route::any('addons/:addon/[…',


     

    笔记

    拼音 

    2023-06-20
    有用
    回复 1
    • fortune
      fortune
      01-31
      同样的问题解决了没?
      01-31
      回复
  • 阿连
    阿连
    2023-02-03



    请问有遇到报这个错误的吗

    2023-02-03
    有用
    回复 2
    • 阿连
      阿连
      2023-02-03
      运行了命令,就报这个错误,也没有证书生成结果
      2023-02-03
      回复
    • fortune
      fortune
      01-31回复阿连
      解决没?
      01-31
      回复
  • 北望沣渭
    北望沣渭
    2022-12-23
    php vendor/bin/CertificateDownloader.php -- -k ${apiV3key} -m ${mchId} -f ${mchPrivateKeyFilePath} -s ${mchSerialNo} -o ${outputFilePath}
    
    
    2022-12-23
    有用
    回复 11
    • 神经蛙
      神经蛙
      2022-12-23
      都已如实填写,不知是哪出错
      2022-12-23
      回复
    • 北望沣渭
      北望沣渭
      2022-12-23回复神经蛙
      你运行的命令,提示你文件没有执行权限,换我给你提供的命令试试
      2022-12-23
      回复
    • 神经蛙
      神经蛙
      2022-12-23
      按你所说的命令又试了下,列出一系列提示,可并未下载证书啊
      2022-12-23
      回复
    • 北望沣渭
      北望沣渭
      2022-12-23回复神经蛙
      把-k前面俩 --去掉再试试
      2022-12-23
      回复
    • 神经蛙
      神经蛙
      2022-12-26回复北望沣渭
      Could not open input file: vendor/bin/CertificateDownloader.php
      2022-12-26
      回复
    查看更多(6)
登录 后发表内容