openmediavault-letsencrypt

    • Official Post

    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.


    Not sure what you are missing?

    • Official Post

    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 7.4.0-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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

  • 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

    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.

  • 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.

    I have thé same problem. How do you do to resolve them ? Can you explain please

  • 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

    Edited 2 times, last by tinh_x7 ().

  • You're wright. I use omv 4, I got the MyCert.pem generated in : /etc/letsencrypt/live/xxxxx.hopto.org
    But still don't see it in OMV web gui.


    I need certificat only for this domain : xxxx.hopto.org (it's à free ddns)
    For moment, I don't usé Nextcloud or any else

    • Official Post

    System Backup Typo alert: Under the Linux section the command should be sudo umount /dev/sda1 NOT sudo unmount /dev/sda1

    Backup Data Disk to Backup Disk on Same Machine: In a Scheduled Job:rsync -av --delete /srv/dev-disk-by-uuid-f8814ed9-9a5c-4e1c-8830-426968c20ea3/ /srv/dev-disk-by-uuid-e67439d5-00a3-4942-bd5f-b84ab86aa850/ Don't forget trailing slashes, and BE CAREFUL. (HT: Getting Started with OMV5)

    Equipment - Thinkserver TS140, NanoPi M4 (v.1), Odroid XU4 (Using DietPi): PiHole

  • I tested my method again last night but it didn’t work.
    The LE cert.pem and privkey.pem are diff’t compare to OMV.
    By copy & rename those files to use with OMV .cert and .key will not work.


    I had to do it by hands and import those keys into OMV SSL menu.

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

  • Well, after the import, I checked the .key and .cert, but they aren’t match with the LE keys.


    are you convert the LE cert.pem and privkey.pem to OMV key and cert respectively ?

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!