• Nginx replaces custom SSL certs when the case doesn't match


    bamhm182
    • Minor

    Hello, I just upgraded to 6.10-rc2 and I have a custom SSL cert that keeps getting replaced. The problem is that domain names are not case sensitive, while the code checking them doesn't take that into account. As such, I recommend the following line 355 of /etc/rc.d/rc.nginx:

     

     

    [[ $SUBJECT != $LANFQDN ]] && rm -f $SSL/certs/${LANNAME}_unraid_bundle.pem

     

    Be changed to the following:

     

    [[ ${SUBJECT,,} != ${LANFQDN,,} ]] && rm -f $SSL/certs/${LANNAME}_unraid_bundle.pem

    This will not cause the cert to be deleted in the case that the Server's name is MySErVeR.domain.tld and the cert is for myserver.domain.tld

    • Like 2



    User Feedback

    Recommended Comments



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.