Closed moodh closed 6 years ago
Interesting; will get this done shortly.
The certutils
has not really been a prioritized part of PyBankID, more like a convenience tool for splitting certs that hopefully works for most people. The check that fails is pretty hacky to begin with, so it is not surprising that it fails.
@moodh Just to make sure; you have tried changing to startswith('libressl')
and made sure that it works? I have no Mac to test it with myself...
No, I added the homebrew path before i ran the script :) I'll try adapting the real code and let you know!
Clone the repo and use the latest commit on the develop branch; implemented a fix there.
On 10 Nov 2017, at 18:32, Kalle Moodh notifications@github.com wrote:
No, I added the homebrew path before i ran the script :) I'll try adapting the real code and let you know!
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or mute the thread.
Just tested it and the split_certificate
function works.
Thanks!
Fixed in cfb6afc25544b2acd3f488c2914634d7d361acfa. Included in version 0.6.1 release on PyPI.
OSX High sierra seems to have changed openssl implementations to LibreSSL which causes a check in pybankid to crash.
(flow) moodh:~/pybankid$ which openssl /usr/bin/openssl
(flow) moodh:~/pybankid$ openssl version LibreSSL 2.2.7
Here's the relevant code: https://github.com/hbldh/pybankid/blob/master/bankid/certutils.py#L76
I guess both has to be supported. I can fix a PR if you'd like but since the change is trivial you might just want to fix it yourself. :)
Thanks!