生成 RSA key pair and inspect self-signed certificate fields
Create RSA 键对 为 testing, 和理解结构的 self-signed X.509 certificate 为本地 development.
- 1
Self-signed certificates 是 used 为本地 TLS testing 和内部 services. 它们是 不 trusted 通过 browsers (否 CA 签名) 但结构是 identical 到公共 certificates. Understanding fields helps 调试 TLS issues.
- 2 RSA 工具 →
生成 an RSA key pair (2048 or 4096 bits). The tool outputs the public and private keys in PEM format. Use this for local testing only — never for production TLS.
- 3 UUID / ULID 生成器 →
生成 a UUID to use as a serial number or unique identifier for the certificate entity.
- 4
self-signed X.509 certificate contains: version, serial 数字, subject (CN, O, OU), issuer (相同 as subject 为 self-signed), validity (notBefore/notAfter), 公共键, 和签名. 签名是 computed 通过 subject's own 私有键, 哪个是 为什么 browsers 拒绝它.
常见问题
- 为什么 browsers 警告关于 self-signed certificates?
- self-signed certificate 有否 链接到 trusted Certificate Authority. browser cannot 验证该 公共键 belongs 到 claimed identity. 此是 正确行为 — 为 production, use certificate 从 trusted CA (Let's Encrypt, etc.).
- 什么键 大小应该 I use 为 RSA?
- 2048 bits 是最小值 acceptable 大小 today. 4096 bits provides larger 安全 margin 但是 slower 为键 generation 和 handshake. 为新 systems, 考虑 ECDSA P-256 哪个 provides equivalent 安全到 3072-位 RSA 在 much smaller 键 sizes.
解决此任务的工作流
相关工具
RSA 工具
使用 Web Crypto API 进行 RSA 密钥生成、加密、解密、签名和验证。免费、隐私优先、100% 纯客户端运行。 工具
UUID / ULID 生成器
生成 UUID v1、v4、v5 和 ULID 标识符。免费、隐私优先、100% 纯客户端运行。UUID v4 使用 Web Crypto API 提供密码学安全随机性;ULID 可按字典序排序并编码时间戳,适合用作数据库索引。支持批量生成、大写和连字符切换。 工具
哈希计算器
计算 MD5、SHA-1、SHA-256 或 SHA-512 哈希,支持十六进制或 Base64 输出。免费、隐私、100% 客户端运行。SHA-256/512 基于 Web Crypto API,MD5 基于 spark-md5,适用于校验和、完整性验证、指纹识别等场景。MD5 与 SHA-1 已不适用于安全场景。 工具