fix(RSAFactory): Dateiname und seine Erweiterung aus der Methode DefaultRSAKeyNameFormatter entfernt
This commit is contained in:
parent
9c7319634a
commit
f7193594b1
@ -17,8 +17,6 @@ namespace DigitalData.Core.Security
|
|||||||
|
|
||||||
public static readonly IEnumerable<string> KeyFileTags = new string[] { DefaultEncryptedPrivateKeyFileTag, DefaultPrivateKeyFileTag, DefaultPublicKeyFileTag };
|
public static readonly IEnumerable<string> KeyFileTags = new string[] { DefaultEncryptedPrivateKeyFileTag, DefaultPrivateKeyFileTag, DefaultPublicKeyFileTag };
|
||||||
|
|
||||||
public static readonly string PEMFileExtension = ".pem";
|
|
||||||
|
|
||||||
private static readonly Lazy<IEnumerable<string>> LazyLowerFileTags = new(() => KeyFileTags.Select(tag => tag.ToLower()));
|
private static readonly Lazy<IEnumerable<string>> LazyLowerFileTags = new(() => KeyFileTags.Select(tag => tag.ToLower()));
|
||||||
|
|
||||||
public static readonly string DefaultRSAKeyNameSeparator = "-_-";
|
public static readonly string DefaultRSAKeyNameSeparator = "-_-";
|
||||||
@ -59,9 +57,7 @@ namespace DigitalData.Core.Security
|
|||||||
else
|
else
|
||||||
sb.Append(DefaultPublicKeyFileTag).Append(separator).Append(passwordVersion);
|
sb.Append(DefaultPublicKeyFileTag).Append(separator).Append(passwordVersion);
|
||||||
|
|
||||||
var rsaKey = sb.Append(PEMFileExtension).ToString();
|
return sb.ToString();
|
||||||
|
|
||||||
return rsaKey;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int KeySizeInBits { get; init; } = 2048;
|
public int KeySizeInBits { get; init; } = 2048;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user