Announcement

Collapse
No announcement yet.

using secure http

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    using secure http

    I had set homeseer to use secure http but have found that when I move around inside of mcsSprinklers that several of the pages will come up with a http:// address instead of the expected https:// and therefore do not load until I manually add the s.

    Is there any adjustments I can make? I searched for this problem but since no one else has mentioned it maybe I am doing something wrong?

    Thanks...

    ct

    #2
    There have been no provisions made within mcsSprinklers to deal with https explicity. There is a file in the \HTML folder tree that contains the links that mcsSprinklers uses (I think mcsSprinklers_links.htm). It may be simple matter of editing this file. There is some dynamics of building from this base, but it is a good place to start. If that does not work then we will need to see what needs to be done.

    Comment


      #3
      Just installed mcsSprinklers and it's working very well with Homeseer except for the same problem that ct had. Homeseer can get you to the main page:
      https://myname.myhomeseer.com/mcsSpr...Page=sprinkler
      but all links (ie.e Wiring Setup, Layout Setup) from there are http:// instead of https://. Obviously, these links do not work.
      mcsSprinklers_links.htm contains the links but you cannot change it to https:// - This maybe generated by Homeseer's script but I'm not sure.
      Any further ideas for a fix? I can't securely, remotely operate mcsSprinklers.
      Thanks.

      Comment


        #4
        Give the attached a try. It is hard-coded just to see if it does what you want. Save the existing .dll and replace with the attached.
        Last edited by Michael McSharry; July 5, 2010, 08:21 PM.

        Comment


          #5
          Unfortunately that did not work, in my log got:
          Plug-In Initializing Plug-in: mcsSprinklersP
          Error Initializing interface: mcsSprinklersP->mcsSprinklers InitIO Error
          Plug-In Finished initializing plug-in mcsSprinklersP
          I bet this is due to hardcoding my server as
          https://myname.myhomeseer.com , I used this as an example. My server's name is exactly the same address except replacing "myname" with "athome"
          Thanks for the quick reply!

          Comment


            #6
            There should be a file \data\mcsSprinklers\startupmain.txt. That will have information on the startup errors. If you went back to the original .dll then it will be overwritten on the next startup. My laptop harddrive died yesterday so I dont have a HS platform to test with right now.

            Comment


              #7
              Yes there is, it is called startup.txt but nothing has been written to it since the InitIO error. So, I put back my original .dll and no problems - back to is locally working and loading. Your hard-coded .dll has an error in it and FYI is considerably smaller (1,926Kb) compared to the original MCSSPRINKLERS_2009.dll that is 2,721KB.

              Comment


                #8
                Do you know if the HS server provides a mechanism for a plugin to query to know if the connection is secure?

                The startup.txt is likely the HS in the \Script folder. The StartupTrace.txt file will be in \Data\mcsSprinklers\ folder. I dont have HS2 running right now on a computer at my disposal so I cannot check to confirm, but it should be there.

                The 1.9M should be the correct file. I removed the err object logic in favor or Try-Catch logic so this is likely why it has lost some weight.

                Comment


                  #9
                  You are correct. The StartupTrace.txt is in \Data\mcsSprinklers\ .
                  I don't know if the HS server provides a mechanism for a plugin to query to know if the connection is secure. I think this would need to be asked in the Developer Support > Web Server & Interface > Web Server SSL Discussions forum.
                  http://board.homeseer.com/forumdisplay.php?f=781
                  I think that I will get lost in the technical discussion if I start something there.
                  Best to wait until you get your Homeseer working again first. I followed the simple script in that forum and configured my server to SSL in about 5 minutes.
                  For now, I use an SSL connection to access my homeseer and use logmein free edition to access my homeseer server remotely if I really need to change the mcsSprinkler settings. I can still run my sprinklers from the devices if needed. I will definitely be buying this program shortly. Great work!

                  Comment


                    #10
                    I investigated this SSL programming within Homeseer and determined that if the default port of 443 is used the IE browser provides indication back to the server of the port that is being used. This means that application software cannot distinguish a default HTTP port 80 vs. a default HTTPS port 443. If you use a port other than 443 (and 80) then I believe I can dynamically build the links with the proper https and port. Does this work for you?

                    Comment


                      #11
                      Can try. My SSL port is now 444 instead of 443.

                      Comment


                        #12
                        I tested it with with 444 and works as expected. It is V2.10.0.37. The top of the subforum contains revision log and download linkls.

                        Comment


                          #13
                          Works! SSL fixed as long as you use another port other than the standard 443 (or 80). This port setting is changed in the Homeseer webserver setup. So, now the syntax for connecting is:
                          https://myserveraddressort
                          example,
                          https://myserver.myhomeseer.com:444
                          Again, thanks Michael!

                          Comment

                          Working...
                          X