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: http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Developers_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 <abhisekb...@msn.com> 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" <in...@sg.or.id> 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 <abhisekb...@msn.com> > wrote: > >> > >> Inline.. > >> > >> Sent from my iPhone > >> > >>> On 20 Sep 2014, at 7:50 pm, "Indra Pramana" <in...@sg.or.id> 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: > >> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/Procedure+to+Replace+realhostip.com+with+Your+Own+Domain+Name > >>> > >>> On this step: > >>> > >>> ==== > >>> Uploading root certificate API call. This is a mandatory step. > >>> > >>> - > >> > http://123.123.123.123:8080/client/api?command=uploadCustomCertificate&id=1&sessionkey=LAM0wM%2B0cejIYxCHprtGc4w15sg%3D&name=root1&domainsuffix=customabc.com&certificate=-----BEGIN+CERTIFICATE-----%0AMIID%2FzCCAuegAwIBAgIJANX8lVYYPplhMA0GCSqGSIb3DQEBBQUAMIGVMQswCQYD%0AVQQGEwJVUzELMAkGA1UECAwCQ0ExCzAJBgNVBAcMAlNDMRQwEgYDVQQKDAtDdXN0%0Ab21BbW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q0nqw91kJmUZ9cy2LINs0akapNhWMvsomfy4YbiLR%0ANUHd%2BymaUb0Q%2BlGe5WeL4kh3W7KbVl0STIxFoRccxHKQHOiIcaQT4AzGWO8uCi90%0AbsFxk7Q11RwMUBUgK0qrhwnl31eUD0bBPvXADix0piTBtUjBGJSJR2at9l%2FoI6F0%0AMyHwZer%2FNsN0vr%2FyeCbYdipdvYrDJOniRuhku01uyFzf8U7%2Fa%2BrDVUtxGPxxfQzR%0APCTXX%2Fyam7lFvMT3ITntyF%2BKhg%3D%3D%0A-----END+CERTIFICATE----- > >>> < > >> > http://10.147.59.226:8080/client/api?command=uploadCustomCertificate&id=1&sessionkey=LAM0wM%2B0cejIYxCHprtGc4w15sg%3D&name=root1&domainsuffix=customamogh.com&certificate=-----BEGIN+CERTIFICATE-----%0AMIID%2FzCCAuegAwIBAgIJANX8lVYYPplhMA0GCSqGSIb3DQEBBQUAMIGVMQswCQYD%0AVQQGEwJVUzELMAkGA1UECAwCQ0ExCzAJBgNVBAcMAlNDMRQwEgYDVQQKDAtDdXN0%0Ab21BbW9naDEeMBwGA1UECwwVQ2VydGlmaWNhdGUgQXV0aG9yaXR5MRQwEgYDVQQD%0ADAtDdXN0b21BbW9naDEgMB4GCSqGSIb3DQEJARYRYW1vZ2h2a0BnbWFpbC5jb20w%0AHhcNMTQwNDAxMTgwODUzWhcNMjQwMzI5MTgwODUzWjCBlTELMAkGA1UEBhMCVVMx%0ACzAJBgNVBAgMAkNBMQswCQYDVQQHDAJTQzEUMBIGA1UECgwLQ3VzdG9tQW1vZ2gx%0AHjAcBgNVBAsMFUNlcnRpZmljYXRlIEF1dGhvcml0eTEUMBIGA1UEAwwLQ3VzdG9t%0AQW1vZ2gxIDAeBgkqhkiG9w0BCQEWEWFtb2dodmtAZ21haWwuY29tMIIBIjANBgkq%0AhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Se5P610tI%2B5sz3X3FTjXGZZ3BzjdDIZ%0A5v5FQFcpAI35dBIYXFQv93gDp%2BAjwxETPP2p%2BhOMtWQm1DWAiyDldH7WZm7EDmz9%0A6ymnU00RlkjluUhfhwTtB9l59xo1haCaKcZQpNBPFm7yPlTTEVLSFAMr0QZVPuu3%0AHM4rClZe9KdGkh4%2FcpzIrYAys2MZpoG3mu0fE6EFbqEJYa5M%2Bvgsja1MqVt58TPo%0AqyaI548P6evJZ%2FpHiqDb360nxFDzbZlSqEUugq5UiJzMm5KyLObvhVhzEZcWLbGe%0ASUAYaIdUfvEt%2FKWlqDZ%2BzRW5RpVMTT%2FFZtArZLs%2FZuZJybq97KSj0wIDAQABo1Aw%0ATjAdBgNVHQ4EFgQUgb8VT%2BUqf1d%2BoCgC8Lap7znkx3gwHwYDVR0jBBgwFoAUgb8V%0AT%2BUqf1d%2BoCgC8Lap7znkx3gwDAYDVR0TBAUwAwEB%2FzANBgkqhkiG9w0BAQUFAAOC%0AAQEAbsKknHC6mEmE24eEV9CfAoGqym4aH3aEBS6%2FUWWXQ%2FOjEArM5xUSXVUCnpQR%0APgLTpqxMymi%2Bq%2BdhAPhJFxDq0nqw91kJmUZ9cy2LINs0akapNhWMvsomfy4YbiLR%0ANUHd%2BymaUb0Q%2BlGe5WeL4kh3W7KbVl0STIxFoRccxHKQHOiIcaQT4AzGWO8uCi90%0AbsFxk7Q11RwMUBUgK0qrhwnl31eUD0bBPvXADix0piTBtUjBGJSJR2at9l%2FoI6F0%0AMyHwZer%2FNsN0vr%2FyeCbYdipdvYrDJOniRuhku01uyFzf8U7%2Fa%2BrDVUtxGPxxfQzR%0APCTXX%2Fyam7lFvMT3ITntyF%2BKhg%3D%3D%0A-----END+CERTIFICATE----- > >>> > >>> - *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.* > >>> > >>> ===== > >>> > >>> - 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. > >> >