Bug 1402372

Summary: NodeJS segfaults when making TLS requests with multiple certificates
Product: [Fedora] Fedora EPEL Reporter: Chris Northwood <chris>
Component: nodejsAssignee: NodeJS Packaging SIG <nodejs-sig>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: epel7CC: chris, jamielinux, mrunge, nodejs-sig, piotr1212, sgallagh, tchollingsworth, thrcka, tom, zsvetlik
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-07 13:20:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
NodeJS test case none

Description Chris Northwood 2016-12-07 12:06:49 UTC
Created attachment 1229032 [details]
NodeJS test case

Description of problem:

When making a HTTP request to a remote endpoint which requires mutual TLS, then a segfault in NodeJS occurs. This does not in the Nodesource built RPMs, but only in the EPEL version.

Version-Release number of selected component (if applicable):

nodejs-6.9.1-4.el7.x86_64

How reproducible:

Every time

Steps to Reproduce:
1. Make a TLS request with multiple certificates specified (see attached poc.js)

Actual results:

Segfault

Expected results:

First certificate that is specified gets used (this is what upstream does)

Additional info:

Comment 1 Tom Hughes 2016-12-07 12:19:06 UTC
This sounds like it might be the same as https://bugzilla.redhat.com/show_bug.cgi?id=1394948 which was happening (EPEL 7 only) when there was an intermediate certificate in the file with the main certificate.

Comment 2 Chris Northwood 2016-12-07 13:20:44 UTC

*** This bug has been marked as a duplicate of bug 1394948 ***