You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/01/19 13:52:54 UTC

[GitHub] [cloudstack] weizhouapache commented on issue #4295: Api Authentication Error

weizhouapache commented on issue #4295:
URL: https://github.com/apache/cloudstack/issues/4295#issuecomment-762851816


   > Revisiting this issue, I just installed 4.15 for first time. Very impressed by the new UI.
   > 
   > Testing this issue on fresh install:
   > 
   > ```
   > Apache CloudStack 🐵 CloudMonkey 6.1.0
   > Report issues: https://github.com/apache/cloudstack-cloudmonkey/issues
   > (localcloud) 🐱 > sync
   > Discovered 613 APIs
   > (localcloud) 🐱 > exit
   > root@manager:~# cmk upload customcertificate id=19 name='RootCertificate' certificate='-----BEGIN CERTIFICATE-----' domainsuffix='*.svm.vdc.test'
   > 🙈 Error: failed to authenticate, please check the credentials
   > root@manager:~# cmk upload customcertificate id=19 name='RootCertificate' certificate='-----BEGIN CERTIFICATE-----' domainsuffix='.svm.vdc.test'
   > {
   >   "customcertificate": {
   >     "message": "Certificate has been successfully updated, if its the server certificate we would reboot all running console proxy VMs and secondary storage VMs to propagate the new certificate, please give a few minutes for console access and storage services service to be up and working again"
   >   }
   > }
   > ```
   > 
   > @DaanHoogland , looks like unfortunately is still there. And looks like it is still just me.
   > 
   > Quick question: Is it possible to use the remote JVM debugger if I installed from the packages? Perhaps setting JVM options on the service unit?
   
   @rvalle 
   the following commands work for me.
   ```
   cmk upload customcertificate certificate="$(cat $CERT_ROOT_CERT)" domainsuffix=$(cat $CERT_DOMAIN)  name=root id=1 
   cmk upload customcertificate certificate="$(cat $CERT_FILE)" domainsuffix=$(cat $CERT_DOMAIN) privatekey="$(cat $CERT_PRIVATE_KEY)" id=2
   ```
   
   please pay attention to the id (1 -> root certificate, 2 -> certificate)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org