Configure cert.pem for self-hosted git repos #1362
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
When using
pdk test unit
one of the actions it performs is to download any module dependencies defined in the.fixtures.yml
. If these dependencies are held in self-hosted repositories then pdk'scert.pem
1 must be configured to trust the self-hosted server. Otherwise, an error likefatal: unable to access...SSL certificate problem: self signed certificate
will occur when using the PDK, particularly when runningpdk test unit
.I've kept the guts of the explanation in the troubleshooting and then linked from related pages (install, upgrade, known issues) to the troubleshooting page.
This PR adds instruction to the docs on how to fix the above and also explains a related known issue: upgrading the PDK will overwrite any previous changes to the
cert.pem
Checklist
Footnotes
/opt/puppetlabs/pdk/ssl/cert.pem
on linux andC:\Program Files\Puppet Labs\DevelopmentKit\ssl\cert.pem
on windows ↩