Forum Discussion

Nandhi's avatar
Icon for Cirrus rankCirrus
Aug 24, 2023

hsts scan result none

We implemented hsts via irule. The ltm logs says headers are inserting but SSL labs results shows none. We tested the in chrome and can see the header values. Below is the rule.

HSTS for http vs:


if { [ HTTP::has_responded]} {return}

HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]" 


HSTS for https vs:

when RULE_INIT { 

set static::expires [clock scan "12 month"] }


HTTP::header insert Strict-Transport-Security "max-age=[expr {$static::expires - [clock seconds]}]; includeSubDomains;preload" 

log local0. "hsts Inserted" }

Any idea why its not flagged in scan results.

3 Replies

  • Hi Edward,

    The hsts already added via irule to the specific vs. We can see the inserted header in GET response and browser developer tools. But ssl labs not able to identify it (showing none). 

    • Why you insert it via irule and not via http profile? are you testing your http:// url or https:// url on ssllabs? Is there maybe any redirect going on and ssllabs isnt doing that redirect, but browser does?