Thank you for you reply. I understood a bit what you were trying to say. I just issued a certificate from zeroSSL instead of trying it this way and now my backend and admin panel is up and running finally. I used this topic as a reference (CPANEL) SSL Certificate Expired - #7 by jared.m