php / php/php-src

OpenSSL Stream Context SSL Session Reuse

Open
#20,367 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

We have developed our own FTP client implementation using stream wrappers but we are unable to fully support FTPS on some servers that enforce SSL Session Reuse on the DATA connection.

I have tried to capture the session somehow from the stream context but this is not available.

I can see this has been fixed for the native FTP ext https://github.com/php/php-src/pull/12851

It would be useful if we could capture this and re-use it for new stream sessions when passing around context.

I am unsure if this already exists.

PHP 8.1/8.3

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 reviewing the native FTP change in pull request 12851 and the stream-context behavior described in this issue. Determine whether SSL session data can already be captured and passed to new stream sessions; done means defining and documenting a supported way for custom FTP clients to reuse the session for FTPS DATA connections.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, php
Domain
backend, networking, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.