Giter Site home page Giter Site logo

Comments (7)

ronivay avatar ronivay commented on May 28, 2024

When you add the server to XO, there's a button to enable "Unauthorized Certificates". Did you try that?

If you need custom CA, you should be able to mount a volume to your containers /etc/ssl/certs

E: actually latter most likely doesn't work out of the box as that use-openssl-ca option isn't set. So not supported/tested currently in this container.

from xen-orchestra-docker.

headwhacker avatar headwhacker commented on May 28, 2024

Hi,

Yes, it will work if I enable "Unauthorized Certificates". But that will make the connection between XO and XCP-NG unsecure.

I can mount a volume then add my custom CA to /etc/ssl/certs. But I can't figure out how to set the "use-openssl-ca" option.

Hopefully, this can be cosidered an option on future versions for this container. Possibly make it available as an env variable that can be set for the container?

Thanks
-Mario

from xen-orchestra-docker.

ronivay avatar ronivay commented on May 28, 2024

Hi,

No it doesn't, traffic is as much encrypted as it would be with a trusted CA. As XO documentation says, if you manage your own CA, using this feature might make sense. Something like that is usually used in bigger business environments where you'd have multiple hosts and want to centrally manage issuing and lifetime of those certificates. Sure it adds a level of security by blocking traffic if CA doesn't match, but doesn't change the way XO and host communicate in any way.

Sure i can take a look if this can be implemented into the container.

from xen-orchestra-docker.

headwhacker avatar headwhacker commented on May 28, 2024

Ok thanks. I did enable "Unauthorized Certificates" for now. Would be cool to expose this option as container variables. Thanks for looking into this.

from xen-orchestra-docker.

ronivay avatar ronivay commented on May 28, 2024

I added an option to define custom CA inside container. Just mount your CA as a file to /host-ca.pem inside the container (added to docker-compose.yml example). You need to pull latest version of container for this to work once this job completes: https://github.com/ronivay/xen-orchestra-docker/actions/runs/2218652889

Let me know how it works. The other use-openssl-ca option would've required quite a hacky solution so i opted to mounting a single CA file (can contain multiple certificates) inside the container instead which expands node.js builtin CA list.

from xen-orchestra-docker.

headwhacker avatar headwhacker commented on May 28, 2024

Hi Roni, that worked like a charm. thanks.

from xen-orchestra-docker.

ronivay avatar ronivay commented on May 28, 2024

Awesome, thank you.

from xen-orchestra-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.