来自 maurycyz.com 的作者公开披露了一种在 SSL/TLS 证书的 RSA 公钥中嵌入自定义文本消息的技术 1。该方法的核心动机在于表达对 SSL/TLS 复杂维护流程(如 ACME、证书过期)的不满,同时保留加密功能以生成既功能正常又带有“抗议”或幽默信息的数字证书 1。
在技术实现上,作者通过精心构造大素数 p 和 q,修改 RSA 模数 n 的二进制表示以嵌入 ASCII 文本,随后调整素数 q 以确保 n=p*q 成立且保持密钥有效性 1。这一过程使得模数 n 的 Base64 编码包含可读字符 1。根据计算,RSA-2048 算法约可隐藏 150 个字符,而 RSA-4096 则约能容纳 320 个字符 1。
尽管该操作降低了私钥的熵值,但文章指出由于现代 TLS 协议具备前向保密(Forward Secrecy)机制,因此在防止被动窃听方面依然有效 1。不过,若素数 p 和 q 过于接近,可能导致密钥更容易被分解从而引发安全隐患 1。为了支持实验,作者提供了 OpenSSL/certbot 命令示例以及指向 tom7.org 和 rya.nc 等网站的生成脚本链接 1。
A technical analysis published on maurycyz.com details a method for concealing custom text messages within the RSA public keys of SSL/TLS certificates. 1 The core technique involves strategically constructing large prime numbers, p and q, such that their product—the modulus n—contains readable ASCII characters when encoded in Base64. 1 This allows the generation of digital certificates that remain fully functional for encryption while displaying humorous or protest-related content embedded directly within the key structure. 1
The motivation behind this development is to express dissatisfaction with the complex maintenance procedures associated with modern TLS deployments, particularly the intricacies of ACME protocols and certificate expiration management, without compromising actual cryptographic security. 1 To ensure these customized certificates can be renewed automatically, the author utilizes standard ACME protocol workflows. 1 In terms of capacity, an RSA-2048 key can accommodate approximately 150 hidden characters, whereas an RSA-4096 key supports around 320 characters, based on Base64 encoding limits. 1
From a security perspective, this approach reduces the entropy of the private key. 1 However, the article notes that modern TLS implementations rely on Forward Secrecy mechanisms, which maintain effectiveness against passive eavesdropping despite the lowered entropy. 1 A significant risk identified is that if the prime factors p and q are too close in value, the resulting key becomes vulnerable to factorization attacks. 1 The disclosure includes practical examples using OpenSSL and certbot commands, along with links to generation scripts hosted at tom7.org and rya.nc. 1
评论
还没有评论,欢迎留下第一条。