Use a uniqid() to track phase2 entries to avoid confustion and various mistakes when modifying and editing them.
Do not try to rekey for IKEv1.