1

About to attend a course and a requirement is a laptop with linux or cygwin

Another is

cygwin requires https support to be installed

This is likely because I will need to use cUrl to fetch https pages

So I installed and updated cygwin to latest, but cannot find anywhere how to "install https support"

UPDATE

  1. downloaded certificates from mozilla as suggested in https://stackoverflow.com/a/13105921/562459
  2. exported proxy settings - needs to go in the .bashrc or similar
export http_proxy=http://nameofyourproxy:xxxx/  
export https_proxy=http://nameofyourproxy:xxxx/

where xxxx is the proxy port number

you need BOTH http and https if not you get

curl: (6) Couldn't resolve host 'www.google.com'

when you do

curl -L https://www.google.com

UPDATE 2

I needed to export https too of course and I needed to put the certs in the right place.

CAfile: /usr/ssl/certs/ca-bundle.crt

So I renamed the download to ca-bundle.crt and copied it to

<install path>cygwin\usr\ssl\certs

and that was it.

Community
  • 1
  • 1
mplungjan
  • 169,008
  • 28
  • 173
  • 236

2 Answers2

3

It depends. You need to ask somebody for clarification.

If you're expected to run Apache on your laptop, you need a certificate. Search online for "configure Apache https". Here's one search result.

But if, for example, you're expected to use cURL to fetch pages using https, I think you just need to install some public keys. I don't think you need the most recent version of cURL, as the linked answer implies, but I could be wrong.

Community
  • 1
  • 1
Mike Sherrill 'Cat Recall'
  • 91,602
  • 17
  • 122
  • 185
  • I was having a totally different problem, because I couldn't clone my private gist from GitHub.com using Cygwin due to -maybe- wrong or expired default ca-certificates. So I replaced the default one with the given one from the 2nd answer you linked and now it works perfectly !!! :) – Mickäel A. Nov 09 '13 at 14:38
2

Little late, but: If you're using cygwin, all you need to do is start the cygwin terminal as administrator, and then run:

update-ca-trust

This will fetch and store the certificates in the correct location.

Stragulus
  • 1,023
  • 11
  • 10