Handle openssl 1.0.X using sha and 1.1.0 using sha256.
Created by: emiljoha
Tried to re-use the solution in the forum article (http://forum.directadmin.com/showthread.php?t=54346). I have tested it and it now works for me with openssl 1.1.0 and it should work with 1.0.X as well.
#149