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.
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
#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
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}
就是下载不下来 也不知道为什么?求解答
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/[…',
笔记
拼音
Usage: 微信支付平台证书下载工具 [-hV]
-f=<privateKeyFilePath> -k=<apiv3Key> -m=<merchantId>
-s=<serialNo> -o=[outputFilePath] -u=[baseUri]
Options:
-m, --mchid=<merchantId> 商户号
-s, --serialno=<serialNo> 商户证书的序列号
-f, --privatekey=<privateKeyFilePath>
商户的私钥文件
-k, --key=<apiv3Key> APIv3密钥
-o, --output=[outputFilePath]
下载成功后保存证书的路径,可选,默认为临时文件目录夹
-u, --baseuri=[baseUri] 接入点,可选,默认为 https://api.mch.weixin.qq.com/
-V, --version Print version information and exit.
-h, --help Show this help message and exit.
命令后显示如上信息,证书并未下载下来啊??
php vendor/bin/CertificateDownloader.php -- -k ${apiV3key} -m ${mchId} -f ${mchPrivateKeyFilePath} -s ${mchSerialNo} -o ${outputFilePath}