SnV
September 24, 2020, 8:03pm
1
Hey,
After installing PU there is no appsettings.json file to edit. I want to change the default port to 443 and a certificate. Using the code supplied:
“Kestrel”: {
“Endpoints”: {
“HTTP”: {
“Url”: “http://*:5000”
}
}
},
But this is not enough alone as the service does not start. can you help pointing me in the write direction?
Folder I am looking in is:
C:\ProgramData\PowerShellUniversal
Thanks
adam
September 24, 2020, 8:09pm
2
You can use the one that is installed into C:\Program Files (X86)\Universal as an example. Just copy and paste that to program data and then you can modify it. It will then use the one in ProgramData if it exists.
SnV
September 25, 2020, 3:58pm
3
hey so I have done this and when running with just HTTP everything works but when I put in the HTTPS it crashes:
{
“Kestrel”: {
“Endpoints”: {
“HTTP”: {
“Url”: “http://:80"
},
“HTTPS”: {
“Url”: "https:// :443”,
“Certificate”: {
“Path”: “%PROGRAMDATA%/PowerShellUniversal/certfile.pfx”,
“Password”: “password”
}
}
}
},
The error in the logs is cant find file, the file is definitely there.
I have also tried:
%PROGRAMDATA%\PowerShellUniversal\certfile.pfx
%PROGRAMDATA%\PowerShellUniversal\certfile.pfx
SnV
September 25, 2020, 4:14pm
4
“HttpsInlineCertStore”: {
“Url”: “https://:443",
“Certificate”: {
“Subject”: "CN= .XX.XX, OU=Domain Control Validated”,
“Store”: “my”,
“Location”: “LocalMachine”,
“AllowInvalid”: “false”
}
}
Also tried this
SnV
September 25, 2020, 4:19pm
5
Ok seems like I fixed it, had to use the full relitive path not the %Progdata% and \ the \
1 Like
SnV
September 25, 2020, 7:51pm
6
Hey on this topic. IE (yeah I know who uses this nowadays) when hitting a dashboard just displays a blank page. Is this a known issue?
SnV
September 30, 2020, 1:38pm
7
any thoughts on the IE issue?
adam
September 30, 2020, 1:42pm
8
Universal doesn’t officially support IE. If you press F12 and look in the console, there will be an error and I can take a quick peek to see if it’s an easy fix.
SnV
September 30, 2020, 1:44pm
9
Thanks, unfortunately one of our apps for something specific only supports IE as the browser so trying to see if we can get this working.
adam
September 30, 2020, 1:48pm
10
I’ve put it on the backlog to take a look. Do you have a requirement for the admin console to support IE or just the dashboard?
SnV
September 30, 2020, 1:49pm
11
Just dashboards.
We use a application called remote desktop manager (Its great) trying to put our dashboard into the welcome page so everyone has quick access to the tools hosted on it. But for whatever reason they force that welcome page to be IE even though they support chrome for entries. Very annoying.
1 Like