Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D041911F17 for ; Sat, 20 Sep 2014 19:09:52 +0000 (UTC) Received: (qmail 86554 invoked by uid 500); 20 Sep 2014 19:09:50 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 86404 invoked by uid 500); 20 Sep 2014 19:09:50 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 86376 invoked by uid 99); 20 Sep 2014 19:09:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Sep 2014 19:09:50 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of amogh.vasekar@citrix.com designates 66.165.176.89 as permitted sender) Received: from [66.165.176.89] (HELO SMTP.CITRIX.COM) (66.165.176.89) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Sep 2014 19:09:22 +0000 X-IronPort-AV: E=Sophos;i="5.04,561,1406592000"; d="scan'208";a="173504736" From: Amogh Vasekar To: "users@cloudstack.apache.org" CC: "dev@cloudstack.apache.org" Subject: Re: Upload root certificate and intermediate certificate Thread-Topic: Upload root certificate and intermediate certificate Thread-Index: AQHP1N4F5eCCVDWUg0a/lKt2eaqRBZwKiUyAgAAyzICAAAMKAIAACzOAgAAGQoD//5JugA== Date: Sat, 20 Sep 2014 19:09:18 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-ID: <3387648D826CFC448D991B7A1248786C@citrix.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Viewing it in firebug in firefox, or developer tools in Chrome would be easiest IMO. Simply turn on the plugin / tools and click on some tab while logged in. The "Network" tab would show the parameters used to make requests. Copy the sessionid parameter Amogh On 9/20/14 11:41 AM, "Indra Pramana" wrote: >Hi Abhisek and all, > >I tried to run the login API command via browser: > >https://x.x.x.x:8080/client/api?command=3Dlogin&username=3Dmyusername&pass= word >=3DmypasswordinMD5hashingformat > >The result is all the response results in one single line without any >separator. > >e.g. > >1800somethingfalseusernameAsia/Kuala_Lumpurblablablasomecodeblablabla=3D8.= 0s >omething > >How can I tell which one is the session key? > > >On Sun, Sep 21, 2014 at 2:19 AM, Indra Pramana wrote: > >> Hi Abhisek, >> >> I checked on this documentation on login via API: >> >> http://cloudstack.apache.org/docs/api/apidocs-4.2/user/login.html >> >> It says that for login API command, I need to put the username and >> password as well? Can I login using username and password instead, do >>the >> api key and signature still required? >> >> I also checked on this documentation on signing API request: >> >> >>=20 >>http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Deve >>lopers_Guide/signing-api-requests.html >> >> If I sign the API requests using api key and signature say for the >> uploadCustomCertificate command, do I still need to put the session key? >> >> Thank you. >> >> >> >> >> On Sun, Sep 21, 2014 at 1:39 AM, abhisek basu >>wrote: >> >>> Please run the login api using the api key and signature, in return you >>> will get the session key. >>> >>> Sent from my iPhone >>> >>> > On 20 Sep 2014, at 10:58 pm, "Indra Pramana" wrote: >>> > >>> > Hi Abhisek and all, >>> > >>> > Good day to you, and thank you for your reply. >>> > >>> > How can we tell what is the session key, are you able to give me the >>> > command to check what is the session key? I have API key and secret >>>key, >>> > but not too sure how to check what is the session key. >>> > >>> > Looking forward to your reply, thank you. >>> > >>> > Cheers. >>> > >>> > >>> >> On Sat, Sep 20, 2014 at 10:26 PM, abhisek basu >>> wrote: >>> >> >>> >> Inline.. >>> >> >>> >> Sent from my iPhone >>> >> >>> >>> On 20 Sep 2014, at 7:50 pm, "Indra Pramana" wrote: >>> >>> >>> >>> Dear all, >>> >>> >>> >>> I am using CloudStack 4.2.0 and I am following this procedure to >>> change >>> >>> console proxy to use our own domain: >>> >> >>>=20 >>>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Procedure+to+Repl >>>ace+realhostip.com+with+Your+Own+Domain+Name >>> >>> >>> >>> On this step: >>> >>> >>> >>> =3D=3D=3D=3D >>> >>> Uploading root certificate API call. This is a mandatory step. >>> >>> >>> >>> - >>> >> >>>=20 >>>http://secure-web.cisco.com/1iT2R06Wizvo9tf0JV4DU3By5npOsABm_p6OQXm1TOI9 >>>9AS6ClmCjbii7hV_e87nMawuFZvKtXBuWDp4WJ0WwJTWZYIE3xTswv6PXGRf-FocNaRosXsi >>>SGkYbXKCzibxCaVoFsZpoHF9eZXgHmYVkb1-67BFfCxLbTmuKYwzkzyg/http%3A%2F%2F12 >>>3.123.123.123%3A8080%2Fclient%2Fapi%3Fcommand%3DuploadCustomCertificate% >>>26id%3D1%26sessionkey%3DLAM0wM%2B0cejIYxCHprtGc4w15sg%3D%26name%3Droot1% >>>26domainsuffix%3Dcustomabc.com%26certificate%3D-----BEGIN%2BCERTIFICATE- >>>----%0AMIID%2FzCCAuegAwIBAgIJANX8lVYYPplhMA0GCSqGSIb3DQEBBQUAMIGVMQswCQY >>>D%0AVQQGEwJVUzELMAkGA1UECAwCQ0ExCzAJBgNVBAcMAlNDMRQwEgYDVQQKDAtDdXN0%0Ab >>>21BbW9naDEeMBwGA1UECwwVQ2VydGlmaWNhdGUgQXV0aG9yaXR5MRQwEgYDVQQD%0ADAtDdX >>>N0b21BbW9naDEgMB4GCSqGSIb3DQEJARYRYW1vZ2h2a0BnbWFpbC5jb20w%0AHhcNMTQwNDA >>>xMTgwODUzWhcNMjQwMzI5MTgwODUzWjCBlTELMAkGA1UEBhMCVVMx%0ACzAJBgNVBAgMAk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tUjBGJSJR2at9l%2FoI6F0%0AMyHwZer%2FNsN0vr%2FyeCbYdipdvYrDJOniRuhku01uyFz >>>f8U7%2Fa%2BrDVUtxGPxxfQzR%0APCTXX%2Fyam7lFvMT3ITntyF%2BKhg%3D%3D%0A----- >>>END%2BCERTIFICATE----- >>> >>> < >>> >> >>>=20 >>>http://secure-web.cisco.com/1vc527p_GzgOqlkM6lWaD1HUK4KxKO8KE9DYBPE_VgGR >>>6OrvPkzQHsjiSptGWZj6_Eg1KC4E6hncNTBrwv58t9D4hjxZ4zdXpeXl1FW-RS5fyuqwlCx8 >>>xKdIHfBXYl-IB_KIAaj3RDpbZ4_YMg75tgB-p2pC0ManVqjx1c6RdNoo/http%3A%2F%2F10 >>>.147.59.226%3A8080%2Fclient%2Fapi%3Fcommand%3DuploadCustomCertificate%26 >>>id%3D1%26sessionkey%3DLAM0wM%2B0cejIYxCHprtGc4w15sg%3D%26name%3Droot1%26 >>>domainsuffix%3Dcustomamogh.com%26certificate%3D-----BEGIN%2BCERTIFICATE- >>>----%0AMIID%2FzCCAuegAwIBAgIJANX8lVYYPplhMA0GCSqGSIb3DQEBBQUAMIGVMQswCQY >>>D%0AVQQGEwJVUzELMAkGA1UECAwCQ0ExCzAJBgNVBAcMAlNDMRQwEgYDVQQKDAtDdXN0%0Ab >>>21BbW9naDEeMBwGA1UECwwVQ2VydGlmaWNhdGUgQXV0aG9yaXR5MRQwEgYDVQQD%0ADAtDdX >>>N0b21BbW9naDEgMB4GCSqGSIb3DQEJARYRYW1vZ2h2a0BnbWFpbC5jb20w%0AHhcNMTQwNDA >>>xMTgwODUzWhcNMjQwMzI5MTgwODUzWjCBlTELMAkGA1UEBhMCVVMx%0ACzAJBgNVBAgMAkNB >>>MQswCQYDVQQHDAJTQzEUMBIGA1UECgwLQ3VzdG9tQW1vZ2gx%0AHjAcBgNVBAsMFUNlcnRpZ >>>mljYXRlIEF1dGhvcml0eTEUMBIGA1UEAwwLQ3VzdG9t%0AQW1vZ2gxI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- >>>END%2BCERTIFICATE----- >>> >>> >>> >>> - *Note: when we upload root certificate through API, only CPVM >>>will >>> >> be >>> >>> rebooted. Also before applying next certificate. make sure all >>>your >>> >> system >>> >>> vm agents are in up state.* >>> >>> >>> >>> =3D=3D=3D=3D=3D >>> >>> >>> >>> - What should we put under sessionkey, is it the API key from >>> CloudStack >>> >>> GUI > Accounts > admin > View Users > admin > API Key? >>> >>> >>> >>>> Session key is the returned when we use login api. If you use port >>> >> 8096, you may ignore session key. >>> >> >>> >>> - What is the best way to convert the certificate into one line to >>>be >>> put >>> >>> on the API URL? The document suggested Google Chrome's Advanced >>>Rest >>> >>> Client, I have downloaded the module on my Chrome but not too sure >>> how to >>> >>> use it. Any pointers or advise? >>> >>>>> there are online tools to URLEncode the cert. Just search for >>> >> URLEncode tool. >>> >> >>> >>> Looking forward to your reply, thank you. >>> >>> >>> >>> Cheers. >>> >> >>> >> >>