Skip to content

Retrieve Certificate from server for authentication - #10

Open
mwiltzius wants to merge 1 commit into
Mapepire-IBMi:mainfrom
mwiltzius:get-ca
Open

Retrieve Certificate from server for authentication#10
mwiltzius wants to merge 1 commit into
Mapepire-IBMi:mainfrom
mwiltzius:get-ca

Conversation

@mwiltzius

Copy link
Copy Markdown
Collaborator

Create and use DaemonServer::retrieveCertificate() to obtain certificate from server
Change DamonServer::ca to private and add getter

These changes are meant to mirror the approach used in mapepire-python.

…ate from server

Change DamonServer::ca to private and add getter
@mwiltzius
mwiltzius requested a review from ThePrez October 31, 2025 14:44

@jwoehr jwoehr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I wonder about the logic of using a temp file for the cert without having any concrete reason to object to it
  • Might consider using the editor to insert the argument names

In general LGTM

Comment thread src/DaemonServer.php
'capture_peer_cert' => true,
]]);

$socket = @stream_socket_client("ssl://{$this->host}:{$this->port}",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'@' is sorta frowned on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants