Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow_insecure is not working #294

Closed
lmayorga1980 opened this issue Aug 14, 2017 · 3 comments
Closed

allow_insecure is not working #294

lmayorga1980 opened this issue Aug 14, 2017 · 3 comments

Comments

@lmayorga1980
Copy link

I am trying to download a file to a specific location(no compress/decompress)

 archive::download { 'gitlab-ci-multi-runner.rpm':
    url            => "https://myserver/gitlab-ci-multi-runner.rpm",
    allow_insecure => true,
  }
(60) Peer's certificate issuer has been marked as not trusted by the user.
==> : More details here: http://curl.haxx.se/docs/sslcerts.html
==> : 
==> : curl performs SSL certificate verification by default, using a "bundle"
==> :  of Certificate Authority (CA) public keys (CA certs). If the default
==> :  bundle file isn't adequate, you can specify an alternate file
==> :  using the --cacert option.
==> : If this HTTPS server uses a certificate signed by a CA represented in
==> :  the bundle, the certificate verification probably failed due to a
==> :  problem with the certificate (it might be expired, or the name might
==> :  not match the domain name in the URL).
==> : If you'd like to turn off curl's verification of the certificate, use
==> :  the -k (or --insecure) option.
@alexjfisher
Copy link
Member

@lmayorga1980 Thanks for your bug report. This should be easy enough to fix.

But first, are you aware you're using the camptocamp/archive compatibility class?
Can you use the archive type directly?

@igalic Added the camptocamp compatibility in #176
I added the allow_insecure option shortly after in #180. It wasn't until #198 before it became available for all providers. https://github.com/voxpupuli/puppet-archive/blob/master/manifests/download.pp was never updated.

alexjfisher added a commit to alexjfisher/puppet-archive that referenced this issue Aug 14, 2017
When the camptocamp archive::download class was first added,
allow_insecure wasn't a feature present in puppet/archive.

Fixes voxpupuli#294
@lmayorga1980
Copy link
Author

@alexjfisher , I guess I can take a look at the camptocamp/archive compat class and get back to you.

@alexjfisher
Copy link
Member

@igalic Does #295 look ok to you?

cegeka-jenkins pushed a commit to cegeka/puppet-archive that referenced this issue Mar 26, 2021
When the camptocamp archive::download class was first added,
allow_insecure wasn't a feature present in puppet/archive.

Fixes voxpupuli#294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants