Added automatic certificate generation