Forum Discussion
Kyle_Twenty_250
Nimbostratus
Feb 21, 2016Insert multiple Public-Key-Pins with iRule
I'm trying to insert multiple public-key-pins using an iRule in LTM 12. Currently, I can get it to work and pass the Qualys test when using a single key with the following code:
HTTP::header ins...
Kai_Wilke
MVP
Feb 21, 2016Hi Kyle,
you have to either
\ or {} escape the double-quote characters to become a part of the HTTP::header parameter strings...
HTTP::header insert "Public-Key-Pins" "pin-sha256=\"hash 1 goes here\"; pin-sha256=\"hash 2 goes here\"; pin-sha256=\"hash 3 goes here\""
... or ...
HTTP::header insert "Public-Key-Pins" {pin-sha256="hash 1 goes here"; pin-sha256="hash 2 goes here"; pin-sha256="hash 3 goes here"}
Note: The first example allows you to substitute certain
or [commands]
to the string. The later example didn't allow any kind of substitution. $variables
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects