Need a special offer?Find out if your project fits.
+

Configure HTTPS

Answered
Daniele asked on June 29, 2021

I tried to configure HTTPS following this article, but the admin panel gets stuck on the server restart:
https://www.flexmonster.com/doc/security-and-authorization-guide/
I also tried to start manually flexmonster-data-server.exe with these settings, but does not start and returns the error below.
"HTTPS": {
"Enabled": true,
"Protocols": "Http1",
"Certificate": {"Path": "file.pfx", "Password": "..."}
}
2021-06-29 10: 12: 40.5756 | FATAL | Flexmonster.DataServer.Program | HTTP configuration failed. Details: The specified network password is incorrect.
My data server version is 2.9.1
What's wrong? Do I need any other prerequisites or configurations?
Thanks,
Daniele

5 answers

Public
Daniele June 30, 2021

Now I can run manually flexmonster-data-server.exe with this config (using store instead of path),  but I can't run Data Server as a service configuring same settings from Admin Panel.
Where does Admin Panel saves its configuration? How can I see differences between the two configurations?
Thanks,
 Daniele

{
"DataSources": [{
"Type": "database",
"DatabaseType": "mssql",
"ConnectionString": "***",
"Indexes": {
"testHttps": {"Query": "SELECT Column FROM Table"}
}
}],
"Security": {
"Authorization": {"Enabled": false},
"CORS": {"AllowOrigin": "*"}
},
"Port": "9500",
"HTTPS": {
"Enabled": true,
"Protocols": "Http1",
"Certificate": {
"Subject": "***",
"Store": "My",
"Location": "CurrentUser",
"AllowInvalid": false
}
}
}
Public
Mykhailo Halaida Mykhailo Halaida Flexmonster June 30, 2021

Hi Daniele,
 
Thank you for posting your question.
 
Just letting you know we are already working on your question and will return to you with a response soon.
 
Best regards,
Mykhailo

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster July 1, 2021

Hi Daniele,
 
Thank you for giving us some time to take a deeper look at this.
 
This seems like an issue with the Data Server, so our team will investigate this behavior further. We'll return to you with the research results on ETA Jul 27th.
 
Answering your next question, the Admin Panel configurations are stored in "C:/ProgramData/FlexmonsterDataServer/" on Windows and in "~/.local/share/FlexmonsterDataServer/" on macOS and Ubuntu/Linux. 
 
Please let us know if there is anything else we can help you with in the meantime.
 
Best regards,
Mykhailo

Public
Vera Didenko Vera Didenko Flexmonster July 27, 2021

Hello, Daniele,
 
We are happy to inform you that the issue with loading an HTTPS certificate with a password was fixed.
Also, our team fixed the issue with Admin Panel displaying an infinite loading screen if a server error occurs.
 
This is available in the latest (2.9.4) version of Flexmonster: https://www.flexmonster.com/release-notes/.
You are welcome to update the component. Here is our updating to the latest version guide for assistance.
 
Please let us know if the fix works fine for you.
 
Kind regards,
Vera

Public
Vera Didenko Vera Didenko Flexmonster August 2, 2021

Hello, Daniele,
 
How are you?
 
Just checking in to ask if you've had a chance to try out the latest fix.
Does everything work fine for you?
 
We would be grateful for your feedback.
 
Kind regards,
Vera

Please login or Register to Submit Answer