Certificate generation works fine