Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 25, 2020
1 parent 4977057 commit 795da40
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1061,25 +1061,31 @@ got('https://example.com', {
// Multiple encrypted PFX's with different passphrases
got('https://example.com', {
https: {
pfx: [{
buffer: fs.readFileSync('./key1.pfx'),
passphrase: 'passphrase1'
}, {
buffer: fs.readFileSync('./key2.pfx'),
passphrase: 'passphrase2'
}]
pfx: [
{
buffer: fs.readFileSync('./key1.pfx'),
passphrase: 'passphrase1'
},
{
buffer: fs.readFileSync('./key2.pfx'),
passphrase: 'passphrase2'
}
]
}
});

// Multiple encrypted PFX's with single passphrase
got('https://example.com', {
https: {
passphrase: 'passphrase',
pfx: [{
buffer: fs.readFileSync('./key1.pfx')
}, {
buffer: fs.readFileSync('./key2.pfx')
}]
pfx: [
{
buffer: fs.readFileSync('./key1.pfx')
},
{
buffer: fs.readFileSync('./key2.pfx')
}
]
}
});
```
Expand Down

0 comments on commit 795da40

Please sign in to comment.