public X509Certificate2 GetPodCertificate() { try { return(_client.V1PodCertificateAsync(default(CancellationToken)).Result.ToX509Certificate()); } catch (Exception e) { _log?.LogError(0, e, "An error has occured while trying to retrieve the pod certificate."); throw ApiException.CreateFromException(e); } }