Hi,
primecertexport(c,1) writes Primo format 4, but nothing reads it back. The attached GP script defines a primecertimport that does (with tests). I suggest adding it to PARI.
It only handles elliptic curve steps, so it reads files from PARI and from CM, but NOT most files written by Primo itself, which also contain N-1 and N+1 steps. The rule and the other details are in the header of the script.
Tested on 1726 certificates of 745-digit primes: export, import, primecertisvalid.
Written with AI help (Claude), According to your guidelines, sending GP and not C code.
Thanks,
-Vahan Stepanyan