Skip to content

Fix https access by using Mozilla::CA#7

Open
snipem wants to merge 1 commit intoonishi:masterfrom
snipem:https-fix-alt
Open

Fix https access by using Mozilla::CA#7
snipem wants to merge 1 commit intoonishi:masterfrom
snipem:https-fix-alt

Conversation

@snipem
Copy link

@snipem snipem commented Apr 6, 2015

Working alternative solution as described by @vzvu3k6k in #4

@vzvu3k6k
Copy link
Collaborator

vzvu3k6k commented Apr 6, 2015

use Mozilla::CA; is not necessary because LWP::Protocol::https requires it implicitly when CA files are not given.

Reference: lib/LWP/Protocol/https.pm#L29

@snipem
Copy link
Author

snipem commented Apr 6, 2015

Can you add Mozilla::CA to some sort of dependency listing? Even if it is not mandatory to run the application when not using https.

@vzvu3k6k
Copy link
Collaborator

vzvu3k6k commented Apr 6, 2015

Because Mozilla::CA is one of the dependencies of LWP::Protocol::https (Makefile.PL - metacpan.org) and LWP::Protocol::https is listed on XPathFeed's cpanfile, Mozilla::CA will be installed implicitly on cpanm --installdeps . or carton install.

Should be Mozilla::CA listed explicitly on XPathFeed's cpanfile?

@snipem
Copy link
Author

snipem commented Apr 6, 2015

For some reason I had to install it by hand. Possibly the same reason why xpathfeed.com doesn't support it.

I think it should be listed explicitly in the cpanfile.

@vzvu3k6k
Copy link
Collaborator

vzvu3k6k commented Apr 8, 2015

Sorry for the late reply. I've been thinking on how to handle this problem for days.

If Mozilla::CA is not installed by cpanm --installdeps . or carton install, there appears to be something wrong. I would rather find out the reason and fix it than just add workaround.

In my environment (perl v5.20.1, cpanm (App::cpanminus) version 1.7027, carton v1.0.12), both cpanm --installdeps . and carton install successfully install Mozilla::CA.

I'd like to reproduce the problem that Mozilla::CA is not installed on my environment. Could you answer the following questions?

  1. What versions of perl, cpanm and carton (if you use) are you using?
  2. What exact commands did you execute to install dependencies and start app.psgi?
  3. At that time, did you get any error messages? If so, what messages did you get?

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

Successfully merging this pull request may close these issues.

2 participants