Skip to content

Commit

Permalink
Util: Add .alt to selfsigned cert alt names
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzi2p committed Jan 29, 2024
1 parent 1126b0a commit 081a024
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/java/src/net/i2p/crypto/SelfSignedGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,9 @@ private static byte[] getExtensions(byte[] pubbytes, String cname, Set<String> a
altNames.add("localhost");
altNames.add("127.0.0.1");
altNames.add("::1");
// RFC 9476
if (cname.endsWith(".i2p"))
altNames.add(cname + ".alt");
}
for (String n : altNames) {
int len;
Expand Down

0 comments on commit 081a024

Please sign in to comment.