php / php/php-src

Add "legacy", key and cert PBE alg options to openssl_pkcs12_export

未关闭
#16,797 7 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Extension: openssl Feature
主要语言
C
星标
40.4k
派生
8.2k
平均合并
2 天 15 小时
30 天内合并 PR
103

描述

Description

Please consider adding support for forcing legacy mode for openssl_pkcs12_export. Currently the only workaround I know, is to switch completely to calling command line openssl pkcs12 -export directly with -legacy option, which requires enabling proc_open or other similar functions, which can pose security risk. Unfortunately many systems and applications still understands only legacy algorithms in PKCS#12 files so many are still forced to use them when creating PKCS#12 files.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先在 php-src 中定位 openssl_pkcs12_export 的实现及其相关测试,然后检查 PKCS#12 导出选项如何传递给 OpenSSL。完成的标准是:无需调用命令行工具即可强制使用 legacy、key PBE 和 certificate PBE 选项,并且为新行为添加覆盖测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
c, php
领域
cryptography, security
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。