Project

General

Profile

Bug #11859

PHP error on certificate list due to unreadable private key

Added by Jim Pingle about 2 months ago. Updated 18 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Certificates
Target version:
Start date:
04/27/2021
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
21.05
Release Notes:
Default
Affected Version:
All
Affected Architecture:

Description

If a certificate private key is present, but corrupted and cannot be read, it can result in the following PHP error:

PHP Warning:  openssl_pkey_get_details() expects parameter 1 to be resource, bool given in /etc/inc/certs.inc on line 2178

To me, I have a fix.

Associated revisions

Revision 55dc0070 (diff)
Added by Jim Pingle about 2 months ago

Do not read cert key details if parsing key failed. Fixes #11859

Revision b3b62e67 (diff)
Added by Jim Pingle about 2 months ago

Do not read cert key details if parsing key failed. Fixes #11859

(cherry picked from commit 55dc00701011c2547a55dabf7716d2939cadc509)

History

#1 Updated by Jim Pingle about 2 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Jim Pingle about 1 month ago

  • Plus Target Version set to 21.05

#3 Updated by Jim Pingle about 1 month ago

Already in 21.05 branch.

#4 Updated by Jim Pingle 24 days ago

  • Status changed from Feedback to Closed

No errors with a corrupt key on current snapshot.

#5 Updated by Jim Pingle 18 days ago

  • Target version changed from 2.6.0 to 2.5.2

Also available in: Atom PDF