CertificateFormatException
class CertificateFormatException(message: String, cause: Throwable? = null) : KcoapException(source)
A certificate or SubjectPublicKeyInfo that kcoap cannot use: malformed DER (ITU-T X.690), a structure that is not an X.509 certificate (RFC 5280 §4.1), or a public key algorithm or curve kcoap does not support. The parsers in this package throw nothing else for any input, so DER from a peer cannot surface as an IllegalArgumentException. A KcoapException.