get cert name when private key is not nil
remove certname