This can be done only using a PIWIS cable, available at the dealer (like this one
$27) or at a qualified Porche garage.
Try also the following reset:
turn ignition on,
turn off.
remove the transponder from the column
push any button on the fob within 6 seconds.
This procedure will reset the key synchronizing again with the vehicle computer.