KeySize KeySize KeySize KeySize Enum


Specifies commonly used RSA algorithm key sizes. This enumeration type can be used in the KeySize property of a CertificateRequestProperties object.

public : enum class KeySize
public enum KeySize
Public Enum KeySize
var value = Windows.Security.Cryptography.Certificates.KeySize.invalid;
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Invalid Invalid Invalid Invalid

No size is specified.

Rsa2048 Rsa2048 Rsa2048 Rsa2048

The key length is 2048 bits.

Rsa4096 Rsa4096 Rsa4096 Rsa4096

The key length is 4096 bits.