Pairing/Bonding using ESP32 as BLE client

Hello all,

Has anybody an idea, how to force an ESP32 as BLE client to pair/bond before it connects to a server?

Thanks a lot,
Rolf