openmediavault-letsencrypt

    • OMV 3.x
    • tinh_x7 wrote:

      I looked at the codes, and it seemed to be the similar solution: convert 'privkey.pem > omv--aabb.key; "fullchain.pem' > 'omv-abb.crt'.
      We still missing some piece of the puzzle to key it import into OMV GUI.
      Here is a script I use to generate some other format cert for other os.

      Shell-Script

      1. #!/bin/bash
      2. # Wharever you do to generate or renew your cert
      3. cd /etc/letsencrypt/live/example.com #Path to certs
      4. openssl x509 -outform der -in fullchain.pem -out fullchain.cer
      5. openssl pkcs12 -inkey /etc/letsencrypt/live/example.com/privkey.pem -in /etc/letsencrypt/live/example.com/cert.pem -export -out /etc/letsencrypt/live/example.com/example/com.pfx
      6. openssl x509 -outform der -in /etc/letsencrypt/live/example.com/cert.pem -out /etc/letsencrypt/live/example.com/cert.crt
      7. openssl pkey -in /etc/letsencrypt/live/example.com/privkey.pem -out /etc/letsencrypt/live/example.com/privkey.key
      8. ### Untangl
      9. cat /etc/letsencrypt/live/example.com/privkey.pem /etc/letsencrypt/live/example.com/cert.pem > /etc/letsencrypt/live/example.com/untangleapache.pem
      10. echo "generated"
      Display All
      Not sure what you are missing?
      If you make it idiot proof, somebody will build a better idiot.

      The post was edited 1 time, last by donh: fixed deleted code ().

    • tinh_x7 wrote:

      Is it do the 'cat' command and import the result into OMV cert menu ?
      The cat command puts the text in the cert files in a bash variable. From there, it can update an existing cert in the omv database.
      omv 5.2.4 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.2
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Somehow the script can’t read this last part of line: openssl pkcs12 -inkey /etc/letsencrypt/live/example.com/privkey.pem -in /etc/letsencrypt/live/example.com/cert.pem -export -out /etc/letsencrypt/live/example.com

      fYI: I’ve changed it to my actual path, but still failed.
      OMV v5.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
    • That line got cut off somehow, ignore it. It was to create a /pfx cert.

      If you have the .pem files you just need
      cat /etc/letsencrypt/live/example.com/privkey.pem /etc/letsencrypt/live/example.com/cert.pem > /etc/letsencrypt/live/example.com/untangleapache.pem.
      If you make it idiot proof, somebody will build a better idiot.
    • So, I got the MyCert.pem generated in that directory.
      But still don't see it in OMV web gui.
      I end up cat those two files and copy & paste them in OMV SSL manually for it to work.

      Edit: I found the easier way is to cp & rename those files with the openmediavault-your-key.cert, and openmediavault-your-key.key, and they should work.
      OMV v5.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro

      The post was edited 2 times, last by tinh_x7 ().

    • Good evening. excuse my English but I am French and therefore obliged to use google translator . I try to install Let's encrypt in OMV 4.

      My domain is : xxxxx.hopto.org
      i don't have subdomain
      below domain, I am asked to fill web root : i put : /var/www/openmediavault/ ( i don't know if that's i have to do)
      i fill out my email
      below email, i m asked to fill certificat's name : do i put any name or it's specific (i don't know what i have to put). In the meantime, I just put the folder path I created in my shared folder
      Ensure Enable is checked : i do that
      and save the configuration.

      But, when i generate certificate, it doesn't this appear in the tab of the cerificats SSL. i don't have any "error" when i generate.
      how to view or where i m wrong?

      thanks for your help and sorry for my english.


      Please try to use simple words or easy words.
    • This solution is for OMV5.
      I think you using OMV4, it would be easier and little difference.

      For OMV4, the web root path was my Nextcloud directory.
      E.g. /srv/577889abccss/www/Nextcloud
      domains: cloud.mydomain.com,media.mydomain.com,test.mydomain.com

      You would need a either your domain or a free ddns to use it with LE.

      The 1st page give you a lot of info.
      OMV v5.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro

      The post was edited 2 times, last by tinh_x7 ().

      Post by omvmax ().

      This post was deleted by the author themselves ().
    • Retired. I love to garden and mess with computers. The more I mess with both the less I know about either.
      OMV 4.1.30-1 on a pair of Odroid hc2's w/ 4TB WD Blue. Running Nextcloud, Plex, & Heimdall - and a Raspberry Pi 3 running Pi-hole.
      Testing OMV 5.2.1-1 beta on an Acer Aspire T180, HP dx2400, and Nanopi M4.