diff --git a/resources/certificate.rb b/resources/certificate.rb index 6635ded0..3c702a71 100644 --- a/resources/certificate.rb +++ b/resources/certificate.rb @@ -44,11 +44,11 @@ if ($providerName -eq 'Microsoft Enhanced RSA and AES Cryptographic Provider'){ $cspParameters.dwProvType = [Contoso.CryptoTriage+ProviderType]::PROV_RSA_AES - } else if ($providerName -eq 'Microsoft RSA SChannel Cryptographic Provider'){ + } elseif ($providerName -eq 'Microsoft RSA SChannel Cryptographic Provider'){ $cspParameters.dwProvType = [Contoso.CryptoTriage+ProviderType]::PROV_RSA_SCHANNEL - } else if ($providerName -eq 'Microsoft Strong Cryptographic Provider'){ + } elseif ($providerName -eq 'Microsoft Strong Cryptographic Provider'){ $cspParameters.dwProvType = [Contoso.CryptoTriage+ProviderType]::PROV_RSA_FULL - } else if ($providerName -eq 'Microsoft Software Key Storage Provider'){ + } elseif ($providerName -eq 'Microsoft Software Key Storage Provider'){ $cspParameters.dwProvType = [Contoso.CryptoTriage+ProviderType]::CNG $cspParameters.dwKeySpec = 0 $cspParameters.dwKeySpec = [Contoso.CryptoTriage+ProviderKeySpecifier]::CERT_NCRYPT_KEY_SPEC