Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,13 @@ runner.run(collection, {

// *note* Not implemented yet.
// In the future, this will be used to read certificates from the OS keychain.
systemCertificate: function() {}
systemCertificate: function() {},

// Debug options
debug: {
// Enable logging SSL session keys (only supported on Node, ignored in the browser)
sslKeyLogFile: '/path/to/keylogfile',
}
}, function (err, run) {
console.log('Created a new Run!');

Expand Down
2 changes: 2 additions & 0 deletions lib/requester/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ module.exports = {
options.ciphers = protocolProfileBehavior.tlsCipherSelection.join(':');
}

options.sslKeyLogFile = defaultOpts.sslKeyLogFile;

if (typeof defaultOpts.maxResponseSize === 'number') {
options.maxResponseSize = defaultOpts.maxResponseSize;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/requester/requester-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ RequesterPool = function (options, callback) {
removeRefererHeaderOnRedirect: _.get(options, 'requester.removeRefererHeaderOnRedirect'),
ignoreProxyEnvironmentVariables: _.get(options, 'ignoreProxyEnvironmentVariables'),
network: _.get(options, 'network', {}),
maxHeaderSize: _.get(options, 'requester.maxHeaderSize', 131072) // 128KB
maxHeaderSize: _.get(options, 'requester.maxHeaderSize', 131072), // 128KB
sslKeyLogFile: _.get(options, 'debug.sslKeyLogFile')
});

// create a cookie jar if one is not provided
Expand Down
3 changes: 2 additions & 1 deletion lib/runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ _.assign(Runner.prototype, {
collectionVariables: collection.variables,
localVariables: options.localVariables,
certificates: options.certificates,
proxies: options.proxies
proxies: options.proxies,
debug: options.debug
}, runOptions)));
});
}
Expand Down
10 changes: 4 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"node-oauth1": "1.3.0",
"performance-now": "2.1.0",
"postman-collection": "5.2.0",
"postman-request": "2.88.1-postman.43",
"postman-request": "github:postmanlabs/postman-request#feature/ssl-keylog",
"postman-sandbox": "6.2.1",
"postman-url-encoder": "3.0.8",
"serialised-error": "1.1.3",
Expand Down
Loading