Forum Discussion

Mike_Graston_10's avatar
Mike_Graston_10
Icon for Nimbostratus rankNimbostratus
Aug 28, 2007

128 bit encryption

All,

 

 

I was wondering has anyone come across a script which will force 128 bit encryption. Was looking through the forum and haven't seen it. I am going into the online help to check it out.

 

 

Thx,

 

 

Mike

3 Replies

  • Ok, here is what i have but I seem to be shutting the website down fro everyone???

     

     

    when HTTP_REQUEST {

     

    if { [SSL::cipher bits] < 128 }{

     

    }

     

    HTTP::respond 402 content "Unauthorized AccessThis

     

    Web site requires 128 bit encrytion or higher Please Update your browser and try again. "

     

    }

     

     

    Mike
  • You're sending the response outside the check in the if statement, so all requests will be responded to with a 402.

    Can you try this?

    
    when HTTP_REQUEST {
       if { [SSL::cipher bits] < 128 }{
          HTTP::respond 402 content "This web site requires 128 bit encryption or higher.  Please update your browser and try again."
       }
    }

    Aaron