Key​Size Key​Size Key​Size Enum


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

public enum KeySizepublic enum KeySizePublic Enum KeySize
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Invalid Invalid Invalid

No size is specified.

Rsa2048 Rsa2048 Rsa2048

The key length is 2048 bits.

Rsa4096 Rsa4096 Rsa4096

The key length is 4096 bits.