mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
BIMI: log DNS names
This commit is contained in:
parent
511445a1f2
commit
53f603d072
1 changed files with 4 additions and 2 deletions
|
@ -209,8 +209,10 @@ public class Bimi {
|
|||
throw new IllegalArgumentException("Invalid certificate type");
|
||||
|
||||
// Check subject
|
||||
if (!EntityCertificate.getDnsNames(cert).contains(domain))
|
||||
throw new IllegalArgumentException("Invalid certificate domain");
|
||||
List<String> names = EntityCertificate.getDnsNames(cert);
|
||||
if (!names.contains(domain))
|
||||
throw new IllegalArgumentException("Invalid certificate domain" +
|
||||
" names=" + TextUtils.join(", ", names));
|
||||
|
||||
// https://datatracker.ietf.org/doc/html/rfc3709#page-6
|
||||
// LogotypeExtn ::= SEQUENCE {
|
||||
|
|
Loading…
Reference in a new issue