howdy folks.
How do I deploy the edge agent to my users remotely. I tried using a batch script but I get an error about SSL cert not being avialble.
The script
edgeagent-kinetic-windows-x64-installer.exe --optionfile .\Parameters.txt
Parameters. text contains
–mode “unattended” --unattendedmodeui “none” --installMode “localInstall” --allowedURL “my URLS” --allowedURL2 “MY URLSt”
Error
C:\ProgramData\CentraStage\Packages\ca30bcaa-9089-4835-8848-7221cb15b13e#>edgeagent-kinetic-windows-x64-installer.exe --mode “unattended” --unattendedmodeui “none” --installMode “localInstall” --allowedURL “Hidden” --allowedURL2 “Hidden”
info: EdgeApp.AgencyManager[0]
EdgeApp v1.2.416.0 (1.2.416.0-03c4a9e59efa904d791a593e357ca27dae9a3513) ® 2021 Epicor Software Corporation
info: EdgeApp.AgencyManager[0]
Starting 1 Agency Directives.
info: EdgeApp.AgencyManager[0]
Creating the AgencyLib.IDirective ‘Printing’
info: Edge.Directives.AgentPrinting.QzTrayOperative[0]
Creating QZ-Tray client using location: wss://localhost:8181
info: Edge.Directives.AgentPrinting.PrintingDirective[0]
Initializing the Edge Printing directive.
info: Edge.Directives.AgentPrinting.PrintingDirective[0]
Starting the PdfPrint Core operative…
info: Edge.Directives.AgentPrinting.PdfPrintingCoreOperative[0]
Starting PdfPrint Core…
info: Edge.Directives.AgentPrinting.QzTrayOperative[0]
Starting QZ Tray…
info: Edge.Directives.AgentPrinting.PrintingDirective[0]
Edge Printing directive started.
info: EdgeApp.AgencyManager[0]
Starting 1 Agency Informants.
info: EdgeApp.AgencyManager[0]
Creating the AgencyLib.IInformant ‘ClientPrinting’
fail: EdgeApp.SSL.QzCertificateLoader[0]
Unable to load web server certificate. Default setting will be used
Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The specified network password is not correct.
at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(ReadOnlySpan1 rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags) at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(ReadOnlySpan
1 rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate…ctor(Byte rawData, String password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate2…ctor(Byte rawData, String password)
at EdgeApp.SSL.QzCertificateLoader.LoadQzTrayLocalHostCertificate(String folder, ILogger1 logger) in C:\agent\_work\2\s\src\EdgeApp\SSL\QzCertificateLoader.cs:line 36 at EdgeApp.Program.ConfigureHttpsEndpoint(HttpsConnectionAdapterOptions options, String folder, ILoggerFactory loggerFactory) in C:\agent\_work\2\s\src\EdgeApp\Program.cs:line 119 info: Edge.Informants.ClientPrinting.ClientPrintingInformant[0] Termination signal received; closing websocket connections System.InvalidOperationException: Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date. To generate a developer certificate run 'dotnet dev-certs https'. To trust the certificate (Windows and macOS only) run 'dotnet dev-certs https --trust'. For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054. at Microsoft.AspNetCore.Hosting.ListenOptionsHttpsExtensions.UseHttps(ListenOptions listenOptions, Action
1 configureOptions)
at Microsoft.AspNetCore.Hosting.ListenOptionsHttpsExtensions.UseHttps(ListenOptions listenOptions)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IEnumerable1 listenOptions, AddressBindContext context, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication
1 application, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at KineticTray.Program.TrayRunAsync(IHost host, CancellationToken token) in C:\agent_work\2\s\src\KineticTray\Program.cs:line 57
at KineticTray.Program.TrayRunAsync(IHost host, CancellationToken token) in C:\agent_work\2\s\src\KineticTray\Program.cs:line 72
at KineticTray.Program.Main(String args) in C:\agent_work\2\s\src\KineticTray\Program.cs:line 33