在浏览器中生成 RSA 密钥对
使用 Web Crypto API (SubtleCrypto) 在浏览器中生成 RSA 密钥对。可选择 1024、2048 或 4096 位密钥。私钥以 PKCS#8 格式导出,公钥以 SPKI 格式导出为 PEM 字符串。