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

openssl not installing cert.pem in macOS 10.14 #28806

Closed
1 of 2 tasks
jonathansimmons opened this issue Jun 8, 2018 · 6 comments
Closed
1 of 2 tasks

openssl not installing cert.pem in macOS 10.14 #28806

jonathansimmons opened this issue Jun 8, 2018 · 6 comments
Labels
outdated PR was locked due to age stale No recent activity

Comments

@jonathansimmons
Copy link

jonathansimmons commented Jun 8, 2018

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
  • [X ] ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • [X ] ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
    https://gist.github.com/jonathansimmons/89727bbac13c44b042a3d9120a1e2a1e

To help us debug your issue please explain:

  • What you were trying to do (and why)
    Me again gents, running macOS 10.14 use a gem that required open ssl, for the sake of this issue i'm going to ignore that gem and just use a simple test for open ssl:
    ruby -rnet/https -e "Net::HTTP.get URI('https://github.com')"
  • What happened (include command output)
    openssl::ssl::sslerror: ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed
  • What you expected to happen
    A passing ssl connection.
  • Step-by-step reproduction instructions (by running brew install commands)
brew update
brew install openssl

The openssl install completes but the ruby -rnet/https -e "Net::HTTP.get URI('https://github.com')" is still failing.

How I fixed it:
Further investigation revealed that while the homebrew openssl install was completing it was not actually putting the cert.pem in /usr/local/etc/openssl. I stumbled through the internets and found rbenv/ruby-build#380 (comment) and used the initial post to create the pem file and the defined find_certificate method to put the cert.pem in place. Then everything started working.

I wanted to report this here to see if this is actual a problem with how the openssl formula is functioning in macOS 10.14.

@mistydemeo
Copy link
Contributor

mistydemeo commented Jun 8, 2018

Hi @jonathansimmons! A gentle reminder, not every one of the maintainers is a "gent" - it never hurts to be inclusive when addressing people. :)

As you might be aware, Homebrew doesn't support OS X 10.4. However, I maintain a fork called Tigerbrew that does support Macs on 10.4 - both Intel and PowerPC. There are some packaging differences in Tigerbrew to account for things like this.

Edit: Unless maybe you're referring to macOS 10.14 instead of OS X 10.4?

@jonathansimmons jonathansimmons changed the title openssl not installing cert.pem in masOS 10.4 openssl not installing cert.pem in macOS 10.4 Jun 8, 2018
@jonathansimmons jonathansimmons changed the title openssl not installing cert.pem in macOS 10.4 openssl not installing cert.pem in macOS 10.14 Jun 8, 2018
@jonathansimmons
Copy link
Author

Hey @mistydemeo,
Good reminder, and sorry for the exclusion. We have a mix of devs on our team and you're right, this was bad taste.

First, yes I was referring to macOS 10.14. 10.4 is just so easy to type. Plus, it was early and I'd not had my coffee yet.

Allow me to be confused though as to why this would be closed. I'm not asking for immediate support but rather trying to help identify an issue. I'd submit a PR but that is beyond my skillset at the moment. So I thought I'd report it here.

@mistydemeo
Copy link
Contributor

I closed it because I thought we were talking about OS X 10.4, which Homebrew doesn't support at all. I can reopen this now that I know we're talking about 10.14!

@mistydemeo mistydemeo reopened this Jun 8, 2018
@ilovezfs
Copy link
Contributor

ilovezfs commented Jun 9, 2018

did you also brew install ruby?

@jonathansimmons
Copy link
Author

No, as I’ve never used brew to install ruby. I manage it with rbenv.

@stale
Copy link

stale bot commented Jul 1, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale No recent activity label Jul 1, 2018
@stale stale bot closed this as completed Jul 8, 2018
@lock lock bot added the outdated PR was locked due to age label Aug 7, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age stale No recent activity
Projects
None yet
Development

No branches or pull requests

3 participants