Generating vendor's certificate and pk