Skip to content

Commit

Permalink
fix subject_cn irule command
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Kratochvil committed May 10, 2024
1 parent f5dcdff commit 7de3ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octavia_f5/restclient/as3objects/irule.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
when HTTP_REQUEST {
if { [HTTP::has_responded] }{ return }
if { [SSL::cert count] > 0 }{
set subject_cn [X509::issuer [SSL::cert 0]]
set subject_cn [X509::subject [SSL::cert 0]]
}
if { [info exists subject_cn] } {
HTTP::header insert "X-SSL-Client-CN" [call x509CNExtract $subject_cn]
Expand Down

0 comments on commit 7de3ead

Please sign in to comment.