Issue with running Squidex locally (SSL Certs)

I have…

  • [X ] Checked the logs and have provided the logs if I found something suspicious there

I’m submitting a…

  • [X ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

Right now, when I run squidex locally with dotnet run, I’m able to access it through https://localhost:5001, however it says it’s “Not secure” in the browser search bar.

This cert was created from running the app in Visual Studio, however, it doesn’t seem to work properly.

https://share.getcloudapp.com/bLujrqN6

No errors inside of the Squidex app, but there is an error inside of our app:

"StatusCode":500,"Message":"The SSL connection could not be established, see inner exception.","StackTrace":"   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)\r\n   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)\r\n   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)\r\n   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)\r\n   at Squidex.ClientLibrary.Configuration.Authenticator.GetBearerTokenAsync()\r\n   at Squidex.ClientLibrary.Configuration.CachingAuthenticator.GetBearerTokenAsync()\r\n   at Squidex.ClientLibrary.Utils.AuthenticatingHttpClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)\r\n   at Squidex.ClientLibrary.Utils.SquidexClientBase.RequestJsonAsync[T](HttpMethod method, String path, HttpContent content, QueryContext context, CancellationToken ct)\r\n   at

Expected behavior

Minimal reproduction of the problem

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [X ] Self hosted with other version
  • [ ] Cloud version

Version: [VERSION]
Master (latest)

Browser:

  • [ X] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Hi, the certs are in dev folder. You just have to install them to your Local Machine into the “Trusted Root Certification Authorities” store.

Sorry, this was necessary due some changes in Chrome.

Hi Sebastian, I installed it and now I get this error:
{
“logLevel”: “Error”,
“messag”: “An unexpected exception has occurred.”,
“app”: {
“name”: “Squidex”,
“version”: “1.0.0.0”,
“sessionId”: “a8ebc8ab-9736-40ef-a79e-cadbbcaa51a8”
},
“web”: {
“requestId”: “|432f014a-4ce9f2caa187d7d7.”,
“requestPath”: “/index.html”,
“requestMethod”: “GET”
},
“timestamp”: “2020-06-09T19:44:00Z”,
“exception”: {
“type”: “System.Net.Http.HttpRequestException”,
“message”: “No connection could be made because the target machine actively refused it.”,
“stackTrace”: " at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)\r\n at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)\r\n at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)\r\n at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task\u00601 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)\r\n at Squidex.Areas.Frontend.Middlewares.WebpackMiddleware.InvokeAsync(HttpContext context) in C:\Users\Blake\Desktop\SeqTek\squidex\backend\src\Squidex\Areas\Frontend\Middlewares\WebpackMiddleware.cs:line 38\r\n at Squidex.Pipeline.Squid.SquidMiddleware.InvokeAsync(HttpContext context) in C:\Users\Blake\Desktop\SeqTek\squidex\backend\src\Squidex\Pipeline\Squid\SquidMiddleware.cs:line 94\r\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context)\r\n at Squidex.Web.Pipeline.LocalCacheMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\Users\Blake\Desktop\SeqTek\squidex\backend\src\Squidex.Web\Pipeline\LocalCacheMiddleware.cs:line 30\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.\u003C\u003Ec__DisplayClass5_1.\u003C\u003CUseMiddlewareInterface\u003Eb__1\u003Ed.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at Squidex.Web.Pipeline.UsageMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\Users\Blake\Desktop\SeqTek\squidex\backend\src\Squidex.Web\Pipeline\UsageMiddleware.cs:line 46\r\n at Squidex.Web.Pipeline.UsageMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\Users\Blake\Desktop\SeqTek\squidex\backend\src\Squidex.Web\Pipeline\UsageMiddleware.cs:line 88\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.\u003C\u003Ec__DisplayClass5_1.\u003C\u003CUseMiddlewareInterface\u003Eb__1\u003Ed.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at Squidex.Web.Pipeline.RequestLogPerformanceMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\Users\Blake\Desktop\SeqTek\squidex\backend\src\Squidex.Web\Pipeline\RequestLogPerformanceMiddleware.cs:line 40\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.\u003C\u003Ec__DisplayClass5_1.\u003C\u003CUseMiddlewareInterface\u003Eb__1\u003Ed.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at Squidex.Web.Pipeline.RequestExceptionMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\Users\Blake\Desktop\SeqTek\squidex\backend\src\Squidex.Web\Pipeline\RequestExceptionMiddleware.cs:line 31"
}

Nevermind, I was not running the front end. Thanks @Sebastian

1 Like