axiosleo / aliyun-sdk Goto Github PK
View Code? Open in Web Editor NEWaliyun sdk , composer library
License: Apache License 2.0
aliyun sdk , composer library
License: Apache License 2.0
用你的example ,一直提示
array(5) {
["Recommend"] => string(91) "https://error-center.aliyun.com/status/search?Keyword=InvalidTimeStamp.Expired&source=PopGw"
["Message"] => string(46) "Specified time stamp or date value is expired."
["RequestId"] => string(36) "A982A6AF-4FFB-4D6B-A9E1-A34A23CDF59E"
["HostId"] => string(19) "alidns.aliyuncs.com"
["Code"] => string(24) "InvalidTimeStamp.Expired"
}
这个更新SLB证书的操作,一直提示签名不对。请问你那边能调用这个接口吗?
\aliyun\sdk\Aliyun::auth($this->access_id,$this->access_secret);
\aliyun\sdk\Aliyun::region('cn-shenzhen');
$request = \aliyun\sdk\slb\SlbClient::action("UploadServerCertificate");
$request->setParam("RegionId",$regiont_id);
$request->setParam("ServerCertificate","-----BEGIN CERTIFICATE-----test-----END CERTIFICATE-----");
$request->setParam("ServerCertificateName",$name);
$request->setParam("PrivateKey","-----BEGIN RSA PRIVATE KEY-----test-----END RSA PRIVATE KEY-----");
$response = $request->request();
$result = $response->getContent();
这里是返回的结果
["Recommend"]=>
string(86) "https://error-center.aliyun.com/status/search?Keyword=IncompleteSignature&source=PopGw"
["Message"]=>
string(793) "The request signature does not conform to Aliyun standards. server string to sign is:POST&%2F&AccessKeyId%3DLTAIK6v7ajZMR9%26Action%3DUploadServerCertificate%26Format%3DJSON%26PrivateKey%3D-----BEGIN%2520RSA%2520PRIVATE%2520KEY-----%250A%2520%2520%2520%2520%2520%2520%2520%25203333%250A%2520%2520%2520%2520%2520%2520%2520%2520-----END%2520RSA%2520PRIVATE%2520KEY-----%26RegionId%3Dcn-shenzhen-finance-1%26ServerCertificate%3D-----BEGIN%2520CERTIFICATE-----%250A%2520%2520%2520%2520%2520%2520%2520%2520haidhidhi%250A%2520%2520%2520%2520%2520%2520%2520%2520-----END%2520CERTIFICATE-----%26ServerCertificateName%3Dtestsss%26SignatureMethod%3DHMAC-SHA1%26SignatureNonce%3D4bb1c34fa00d672325f54fd4f4d34a6a%26SignatureVersion%3D1.0%26Timestamp%3D2018-03-30T13%253A02%253A09Z%26Version%3D2014-05-15"
["RequestId"]=>
string(36) "0EB229C0-1E0E-4037-8E7B-26D03409A8B0"
["HostId"]=>
string(16) "slb.aliyuncs.com"
["Code"]=>
string(19) "IncompleteSignature"
这是文档地址
https://help.aliyun.com/document_detail/27587.html
作为一个功能并不全面的,第三方的SDK,能不能好好地把你们已支持的功能列出来?如果我要用的功能没支持,那我就不用了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.