Self signed certificates support

Currently email reports cannot be generated correctly when monitorix is hosted on https with self signed certificate.
This patch fixes this issue.