diff --git a/src/IceRpc.Templates/Templates/IceRpc-Ice-DI-Server/Program.cs b/src/IceRpc.Templates/Templates/IceRpc-Ice-DI-Server/Program.cs index f3a6cf8179..61c7b8b228 100644 --- a/src/IceRpc.Templates/Templates/IceRpc-Ice-DI-Server/Program.cs +++ b/src/IceRpc.Templates/Templates/IceRpc-Ice-DI-Server/Program.cs @@ -27,8 +27,7 @@ Path.Combine( hostBuilder.Environment.ContentRootPath, hostBuilder.Configuration.GetValue("Certificate:File")!), - password: null, - keyStorageFlags: X509KeyStorageFlags.Exportable)); + password: null)); // Bind the server options to the "appsettings.json" configuration "Server" section, and add a Configure // callback to configure its authentication options. diff --git a/src/IceRpc.Templates/Templates/IceRpc-Ice-Server/Program.cs b/src/IceRpc.Templates/Templates/IceRpc-Ice-Server/Program.cs index fdd67aa811..dd21ad6dec 100644 --- a/src/IceRpc.Templates/Templates/IceRpc-Ice-Server/Program.cs +++ b/src/IceRpc.Templates/Templates/IceRpc-Ice-Server/Program.cs @@ -19,8 +19,7 @@ using X509Certificate2 serverCertificate = X509CertificateLoader.LoadPkcs12FromFile( "certs/server.p12", - password: null, - keyStorageFlags: X509KeyStorageFlags.Exportable); + password: null); // Create a server that uses the ice protocol for compatibility with ZeroC Ice, and logs messages to a // logger with category `IceRpc.Server`. The default port for the ice protocol is 4061.