Added serial support and ssl verification