Encodes the certificate to an output stream in a format that can be decoded by the {@code decode} method.
@param stream the output stream to which to encode the certificate.
@exception KeyException if the certificate is not properly initialized, or data is missing, etc.
@exception IOException if a stream exception occurs while trying to output the encoded certificate to the output stream.
@see #decode @see #getFormat
See Implementation
Encodes the certificate to an output stream in a format that can be decoded by the {@code decode} method.
@param stream the output stream to which to encode the certificate.
@exception KeyException if the certificate is not properly initialized, or data is missing, etc.
@exception IOException if a stream exception occurs while trying to output the encoded certificate to the output stream.
@see #decode @see #getFormat