XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    xo-cli and using self signed certificates

    Scheduled Pinned Locked Moved Xen Orchestra
    6 Posts 3 Posters 2.3k Views 1 Watching
    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.
    • lawrencesystemsL Offline
      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-fJ 1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by olivierlambert

        Pinging @julien-f about this

        1 Reply Last reply Reply Quote 0
        • julien-fJ Offline
          julien-f Vates 🪐 Co-Founder 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
          
          lawrencesystemsL 1 Reply Last reply Reply Quote 1
          • lawrencesystemsL Offline
            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-fJ 1 Reply Last reply Reply Quote 0
            • julien-fJ Offline
              julien-f Vates 🪐 Co-Founder 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
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post