如何从需要客户端证书身份验证的支持服务器获取信息?

The backedn server URL is https://www.example.com/order/?id=

I am writing the front end to pass order id to this server and display the information I got back.

Server www.example.com requires client certificate authentication.

If I use browser to this URL https://www.example.com/order/?id=123456

I can select my certificate and then get the information I want.

Is there any way I can do this:

Initial page asks the user to select client certificate they wan to use on browser and input order number --> Pass the client certificate andorder number to 'https://www.example.com/order/?id=' to get an result

I've tried using file_get_contents() and cURLs but could not find a way to pass in the client certificate.

---------Update-----------

I've update my Apache virtualHost file and I can have the client certificate information store on the environment now.

$_SERVER['SSL_CLIENT_M_SERIAL']
$_SERVER['SSL_CLIENT_S_DN']
$_SERVER['SSL_CLIENT_V_END']

What I should do to pass these certificate information to the backend server to get through the authentication?