diff --git a/DigitalData.Core.Security/RSAFactory.cs b/DigitalData.Core.Security/RSAFactory.cs index 6d6dec9..f7a51a5 100644 --- a/DigitalData.Core.Security/RSAFactory.cs +++ b/DigitalData.Core.Security/RSAFactory.cs @@ -17,8 +17,6 @@ namespace DigitalData.Core.Security public static readonly IEnumerable KeyFileTags = new string[] { DefaultEncryptedPrivateKeyFileTag, DefaultPrivateKeyFileTag, DefaultPublicKeyFileTag }; - public static readonly string PEMFileExtension = ".pem"; - private static readonly Lazy> LazyLowerFileTags = new(() => KeyFileTags.Select(tag => tag.ToLower())); public static readonly string DefaultRSAKeyNameSeparator = "-_-"; @@ -59,9 +57,7 @@ namespace DigitalData.Core.Security else sb.Append(DefaultPublicKeyFileTag).Append(separator).Append(passwordVersion); - var rsaKey = sb.Append(PEMFileExtension).ToString(); - - return rsaKey; + return sb.ToString(); } public int KeySizeInBits { get; init; } = 2048;