XCP-ng

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    xo-cli and using self signed certificates

    Xen Orchestra
    3
    6
    311
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lawrencesystems
      lawrencesystems Ambassador 📣 last edited by

      Is there a command line option for xo-cli to use a self signed certificate? Or is answer to have the server also listening on http as well?

      Running this command

      xo-cli --register https://localhost/api/admin@admin.net admin
      

      gives this error

      "type": "error",
        "message": "self signed certificate",
        "error": {
        "code": "DEPTH_ZERO_SELF_SIGNED_CERT"
      
      
      julien-f 1 Reply Last reply Reply Quote 0
      • olivierlambert
        olivierlambert Vates 🪐 Founder & CEO 🦸 last edited by olivierlambert

        Pinging @julien-f about this

        1 Reply Last reply Reply Quote 0
        • julien-f
          julien-f Vates 🪐 XO Team 🔭 @lawrencesystems last edited by

          @lawrencesystems I've just published xo-cli@0.12 which supports this:

          xo-cli --register --allowUnauthorized https://localhost/api/admin@admin.net admin
          
          lawrencesystems 1 Reply Last reply Reply Quote 1
          • lawrencesystems
            lawrencesystems Ambassador 📣 @julien-f last edited by

            @julien-f

            Awesome, thanks!

            One other question, and what sent me learning about the xo-cli, how would I filter for running VM's that are using a particular shared storage? I have a multiple shared storage systems attached to the pool. I need to update and reboot one of those storage units so I would like to move or stop the VM's that are using it. I know I can see which ones are running by going and see which attached drives are green but I figured there was an object I could filter for withing XO in the search.

            julien-f 1 Reply Last reply Reply Quote 0
            • julien-f
              julien-f Vates 🪐 XO Team 🔭 @lawrencesystems last edited by

              @lawrencesystems Not possible/easy to do with xo-cli, please see this post: https://xcp-ng.org/forum/topic/4816/bash-script-for-migrating/9

              1 Reply Last reply Reply Quote 0
              • olivierlambert
                olivierlambert Vates 🪐 Founder & CEO 🦸 last edited by

                That's the part where are potential/future public API could be very helpful 🙂

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post