1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Turn off SSL

5 posts, 0 answered
  1. Court
    Court avatar
    20 posts
    Registered:
    24 Nov 2009
    28 Jan 2010
    Link to this post
    I know via the admin tools I can set a pages SSL to be on or off. But is there away to do it like in a custom httpModule? So that if I have a app setting of UseSSL and that is set to false that it wouldn't use SSL?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Jan 2010
    Link to this post
    Hi Court,

    You can add appSettings key in your web.config file. Then using ConfigurationSettings.AppSettings you can read the key value in Global.asax Application_Start event. Then you need to loop through list of all pages - you can get all pages by using CmsManager and its GetPages() method. You have to check whether ICmsPage object requires ssl (RequireSSL propety) and change it.

    You can follow the same logic to set dynamically the property when a page is created.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Court
    Court avatar
    20 posts
    Registered:
    24 Nov 2009
    29 Jan 2010
    Link to this post
    So when you say "Change it", are you meaning change the value and save it? So if I save it then that would be a permanent change in the database until its changed and saved again?

    If that is what you are suggesting, that not what I need to happen. I don't want to change the values in the database. Just in runtime if I am running the site on a staging server and don't have a SSL cert installed those pages that require SSL would fail. 

    So is that even possible? 
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Jan 2010
    Link to this post
    Hi Court,

    RequireSSL is a property of ICms object. If you want to change the value of the property you need to save the object again. Otherwise you will get failure connection.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Court
    Court avatar
    20 posts
    Registered:
    24 Nov 2009
    29 Jan 2010
    Link to this post
    I realize that "RequireSSL" is a property of ICms object. My issue with the proposed solution that is that not every page in the cms is set to "RequireSSL". So by mass changing every page as suggested, I would then loose which pages had to be set to SSL if I wanted that back again.

    So you are telling me that there is no way of forcing the cms not to use SSL without having to update each and every page property that the RequireSSL is set to true in the database.
Register for webinar
5 posts, 0 answered