Xhorse VVDI Mini OBD tool can read PIN code from Pugeot and Citroen. With the PIN you can program key (add key/all keys lost). All you need is a VVDI Mini OBD and a Smartphone.
Insert Mini obd tool with vehicle via OBD socket
in Mini OBD App, select IMMO programming->Peugeot->Password reading->Type (Here select Type 1 CAN)->Start execution
This function will cause wiper to move, which is normal
Select IMMO Password reading
Citroen share the same procedure in xhorse mini obd: