ACMESharp.Providers.AWS.AwsIamCertificateInstaller.Uninstall C# (CSharp) Method

Uninstall() public method

public Uninstall ( PrivateKey pk, ACMESharp.PKI.Crt crt, IEnumerable chain, IPkiTool cp ) : void
pk PrivateKey
crt ACMESharp.PKI.Crt
chain IEnumerable
cp IPkiTool
return void
        public void Uninstall(PrivateKey pk, Crt crt, IEnumerable<PKI.Crt> chain,
                IPkiTool cp)
        {
            AssertNotDisposed();

            using (var client = new AmazonIdentityManagementServiceClient(
                CommonParams.ResolveCredentials(),
                CommonParams.RegionEndpoint))
            {
                var iamRequ = new DeleteServerCertificateRequest
                {
                    ServerCertificateName = this.ServerCertificateName,
                };

                var iamResp = client.DeleteServerCertificate(iamRequ);
                // TODO:  any checks we should do?
            }
        }