The most widely accepted format for Digital IDs is defined by the CCITT X.509 international standard; thus certificates can be read or written by any application complying with X.509.
Further refinements are found in the PKCS standards and the PEM standard.