Added automatic certificate generation.