Solved: Send request to localhost/app/page (IIS) -- SSL/TLS error
Posted: 2021-Nov-10, 4:26 pm
Hello, I'm needing to get the version number of the web app that's currently running on IIS instance.
There is a text file that contains the version information located at:
D:\Program Files\vendor\application name\version number-application name\web\the *.txt file.
That file can be accessed via: (http is forbidden)
https://localhost/application/the text file.txt
In order for me to get the version number so that I can add it to the path to the /web/ directory, I must know the version number... lol.
I thought I'd just have the PS script do one of these to get the version number from IIS and then continue on in my script:
But that results in this:
And I don't know how to get around that, or if there is an entirely different method to reach https://localhost/application/the text file.txt. I'm open to any ideas.
There is a text file that contains the version information located at:
D:\Program Files\vendor\application name\version number-application name\web\the *.txt file.
That file can be accessed via: (http is forbidden)
https://localhost/application/the text file.txt
In order for me to get the version number so that I can add it to the path to the /web/ directory, I must know the version number... lol.
I thought I'd just have the PS script do one of these to get the version number from IIS and then continue on in my script:
Code: Select all
Invoke-RestMethod "https://localhost/application/the text file.txt"
Code: Select all
Invoke-RestMethod : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
At line:1 char:1