In WHM, go to EasyApache (Apache Update) area, and re-compile Apache and PHP.
When you reach the "Short Options List" area, click "Exhaustive Options List" button and then find Openssl under PHP and check it. Scroll to the bottom, then click on "Save and build"