You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yieldreturnnewValidationResult($"The {nameof(DnsNames)} is required.",new[]{nameof(DnsNames)});
42
+
yieldreturnnewValidationResult($"The {nameof(DnsNames)} is required.",[nameof(DnsNames)]);
43
+
}
44
+
45
+
if(KeyType=="RSA")
46
+
{
47
+
if(KeySizeis not (2048 or 3072 or 4096))
48
+
{
49
+
yieldreturnnewValidationResult($"The {nameof(KeySize)} must be 2048, 3072, or 4096 when {nameof(KeyType)} is RSA.",[nameof(KeySize)]);
50
+
}
51
+
}
52
+
elseif(KeyType=="EC")
53
+
{
54
+
if(KeyCurveNameis not ("P-256" or "P-384" or "P-521" or "P-256K"))
55
+
{
56
+
yieldreturnnewValidationResult($"The {nameof(KeyCurveName)} must be P-256, P-384, P-521, or P-256K when {nameof(KeyType)} is EC.",[nameof(KeyCurveName)]);
0 commit comments