php / php/php-src

OpenSSL: Support rsa_padding_mode:pss for openssl_sign()

Open
#17,980 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Extension: openssl Feature Status: Needs Triage
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

Use case for JWT with OAuth client credentials. I don't think this is possible with the current version of the extension, but I may be wrong.

Example command line options

openssl req -new -x509 -newkey rsa:4096 -sha256 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:64 -keyout key.pem -out pub.pem -nodes -days 365

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the openssl_sign() implementation and its handling of signing options. Compare the requested rsa_padding_mode:pss and rsa_pss_saltlen:64 options with the command-line example, then verify that JWT/OAuth-style RSA-PSS signing works and existing signing behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, php
Domain
cryptography, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.