Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. How to use cert files in custom applications

How to use cert files in custom applications

Scheduled Pinned Locked Moved Support
reverseproxycertificates
5 Posts 3 Posters 850 Views 3 Watching
  • 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.
  • N Offline
    N Offline
    niko
    wrote on last edited by girish
    #1

    How can I convert the key file in the yellowtent certs folder into the format that looks like below so that I can use it in a custom application please? Since I switched to Cloudron, I'm unable to set my app correctly to use SSL. My browser doesn't like the key file in the certs folder or maybe I'm using the wrong combination? I need some help to figure this out.

    -----BEGIN PRIVATE KEY-----
    xxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxx
    -----END PRIVATE KEY-----

    girishG mehdiM 2 Replies Last reply
    0
    • N niko

      How can I convert the key file in the yellowtent certs folder into the format that looks like below so that I can use it in a custom application please? Since I switched to Cloudron, I'm unable to set my app correctly to use SSL. My browser doesn't like the key file in the certs folder or maybe I'm using the wrong combination? I need some help to figure this out.

      -----BEGIN PRIVATE KEY-----
      xxxxxxxxxxxxxxxxxxxxxxxxxxx
      xxxxxxxxxxxxxxxxxxxxxxxxxxx
      -----END PRIVATE KEY-----

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @niko Do something like this:

      • Place the cert and key in /home/yellowtent/boxdata/certs/{app.domain.com}.user.cert and /home/yellowtent/boxdata/certs/{app.domain.com}.user.key (replace app.domain.com with the app's full fqdn).
      • chown yellowtent:yellowtent /home/yellowtent/boxdata/certs/{app.domain.com}.user.cert /home/yellowtent/boxdata/certs/{app.domain.com}.user.key
      • Then, go to app's location section and click save without making any changes (https://docs.cloudron.io/apps/#change-domain). This will regenerate the nginx configs to use the user certs

      Let me know if that works!

      N 1 Reply Last reply
      2
      • N niko

        How can I convert the key file in the yellowtent certs folder into the format that looks like below so that I can use it in a custom application please? Since I switched to Cloudron, I'm unable to set my app correctly to use SSL. My browser doesn't like the key file in the certs folder or maybe I'm using the wrong combination? I need some help to figure this out.

        -----BEGIN PRIVATE KEY-----
        xxxxxxxxxxxxxxxxxxxxxxxxxxx
        xxxxxxxxxxxxxxxxxxxxxxxxxxx
        -----END PRIVATE KEY-----

        mehdiM Offline
        mehdiM Offline
        mehdi
        App Dev
        wrote on last edited by
        #3

        @niko Why are you trying to handle certs manually? Cloudron just generates valid certs all on its own, even for custom apps. Do you have specific certificates you want to use?

        1 Reply Last reply
        1
        • girishG girish

          @niko Do something like this:

          • Place the cert and key in /home/yellowtent/boxdata/certs/{app.domain.com}.user.cert and /home/yellowtent/boxdata/certs/{app.domain.com}.user.key (replace app.domain.com with the app's full fqdn).
          • chown yellowtent:yellowtent /home/yellowtent/boxdata/certs/{app.domain.com}.user.cert /home/yellowtent/boxdata/certs/{app.domain.com}.user.key
          • Then, go to app's location section and click save without making any changes (https://docs.cloudron.io/apps/#change-domain). This will regenerate the nginx configs to use the user certs

          Let me know if that works!

          N Offline
          N Offline
          niko
          wrote on last edited by
          #4

          @girish said in How to use cert files in custom applications:

          @niko Do something like this:

          • Place the cert and key in /home/yellowtent/boxdata/certs/{app.domain.com}.user.cert and /home/yellowtent/boxdata/certs/{app.domain.com}.user.key (replace app.domain.com with the app's full fqdn).
          • chown yellowtent:yellowtent /home/yellowtent/boxdata/certs/{app.domain.com}.user.cert /home/yellowtent/boxdata/certs/{app.domain.com}.user.key
          • Then, go to app's location section and click save without making any changes (https://docs.cloudron.io/apps/#change-domain). This will regenerate the nginx configs to use the user certs

          Let me know if that works!

          @mehdi said in How to use cert files in custom applications:

          @niko Why are you trying to handle certs manually? Cloudron just generates valid certs all on its own, even for custom apps. Do you have specific certificates you want to use?

          I should better explain what I'm trying to achieve. I run a trade bot alongside Cloudron on my VPS. To reach the web-based GUI of the bot, I need to feed it a key file and a certificate file so that it can use SSL.

          Before Cloudron, I used to run another similar app manager, which also automatically got signed certificate files from Letsencrypt but the key file looked a little different. I was able to copy and use those cert and key files without any problem but the key file in the yellowtent folder is of another format and I can't figure out how to use it. If I use the files as they are, my browser doesn't accept them.

          The bot runs on nodejs server and the GUI is accessible on a specified port on the root domain, so the same certificate Cloudron installs should work with it. Obviously there is a correct way to use those files because my Cloudron apps currently run with SSL.

          Your help is much appreciated.

          girishG 1 Reply Last reply
          0
          • N niko

            @girish said in How to use cert files in custom applications:

            @niko Do something like this:

            • Place the cert and key in /home/yellowtent/boxdata/certs/{app.domain.com}.user.cert and /home/yellowtent/boxdata/certs/{app.domain.com}.user.key (replace app.domain.com with the app's full fqdn).
            • chown yellowtent:yellowtent /home/yellowtent/boxdata/certs/{app.domain.com}.user.cert /home/yellowtent/boxdata/certs/{app.domain.com}.user.key
            • Then, go to app's location section and click save without making any changes (https://docs.cloudron.io/apps/#change-domain). This will regenerate the nginx configs to use the user certs

            Let me know if that works!

            @mehdi said in How to use cert files in custom applications:

            @niko Why are you trying to handle certs manually? Cloudron just generates valid certs all on its own, even for custom apps. Do you have specific certificates you want to use?

            I should better explain what I'm trying to achieve. I run a trade bot alongside Cloudron on my VPS. To reach the web-based GUI of the bot, I need to feed it a key file and a certificate file so that it can use SSL.

            Before Cloudron, I used to run another similar app manager, which also automatically got signed certificate files from Letsencrypt but the key file looked a little different. I was able to copy and use those cert and key files without any problem but the key file in the yellowtent folder is of another format and I can't figure out how to use it. If I use the files as they are, my browser doesn't accept them.

            The bot runs on nodejs server and the GUI is accessible on a specified port on the root domain, so the same certificate Cloudron installs should work with it. Obviously there is a correct way to use those files because my Cloudron apps currently run with SSL.

            Your help is much appreciated.

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @niko You have to convert the app into a Cloudron app for all this to reliably work. We don't support running/installing other things other than Cloudron on the same server. This is because Cloudron will overwrite nginx configuration etc from time to time (for example, updates bring in new configuration).

            If your app has a Dockerfile, you can make it a custom app with not too much work - https://docs.cloudron.io/custom-apps/tutorial/ . Custom app will automatically get certs, backups, restore, clone features etc with no extra work. What framework/language does your app use?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search