Hi,
I was trying to fiddle with add header / set-header from header rewrite
plugin.
Is there any max value length restriction ?
Also is there any escape character to escape quotations so they can be
included within header values ? Thanks
The code is like below,
cond %{SEND_RESPONSE_HDR_HOOK} [AND]
cond %{INCOMING-PORT} =443
rm-header Public-Key-Pins
add-header Public-Key-Pins
'pin-sha256="dHpKEWwr31kCE4jjyO7WwSbAhgIMccnZ3OYijT8vWwo=";
pin-sha256="pm52VfUtCya8q3SYoq1qkdkUCMQ4rP3ebsS1gKDHBQk=";
pin-sha256="CZR9v2031l9XQRdKvwovHMTH/1BViE4WaGWEeage0/k=";
pin-sha256="MWnutvoJswun9uop0f3wV/a02Unqg2ReCBixIfikka8=";
pin-sha256="lCppFqbkrlJ3EcVFAkeip0+44VaoJUymbnOaEUk7tEU=";
pin-sha256="58qRu/uxh4gFezqAcERupSkRYBlBAvfcw7mEjGPLnNU="; max-age=2592000;
includeSubDomains'
It is only adding Public-Key-Pins 'pin-sha256=
I know it is silly and i also know about this patch here.
https://issues.apache.org/jira/browse/TS-3216
Still I was thinking of doing it in Lua and would like a simple solution to
calculate my own values and provide more than 2 -3 backups.
Thanks again for this awesome server package !