Create iRule for this

 

Rule:

Create a new rule called Insert_CertObject_Header

Definition:

when HTTP_REQUEST {

   HTTP::header insert X-Client-Cert [X509::subject [SSL::cert 0]]

}

Other area can be returned:

Replace X509::subject with it.

Setting requirement:

 

Import CA cert

 

System  >>  Certificate Management > Traffic Certificate Management > SSL Certificate List

Click Import, Give it a name, and browse CA cert to import.

Enable SSL client profile

Under Virtual Server, find the Virtual Server you created

Under tab Properties:

SSL Profile (client) add clientssl from Available to Selected.

Profiles > SSL >  Client  ››  clientssl

Client Authentication:

Client Certificate: require

Frequency: Always

Trusted Certificate Authorities: Select the CA issued the client cert.

 

Under tab Resources:

After iRules, click button Manage…, select Insert_CertObject_Header from Available, click << to move it to Enabled.then click finished

 

Test

 

open a webbrowser, open virtual server IP on F5:

 

 

On the Server side, wireshark should capture this:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ref:

 

https://my.f5.com/manage/s/article/K95338243