Fix unsecure SSL connection
Version bump to 3.1.2