Replace deprecated API of cert-svc