Comments (4)
That's strange; I have never seen that error. Is it reproducible every time?
from django-u2f.
Ah, I think I tracked it down. It was my problem, nothing to do with your project. I set up a fresh Ubuntu Server 14.04 VM and the test project worked perfectly. After doing some searching online, it looked like the version of OpenSSL I have on my system might have been the issue, and compiling the most recent version of that (and recompiling M2Crypto) fixed my issues. (I'm on a Mac, running OS X 10.9 Mavericks.)
For anyone else who runs into this issue while trying to run this (or any other M2Crypto-related issues) on Mac, here's what I did to solve it. (Note: I tried the homebrew version of openssl, but for some reason it wouldn't work at all with M2Crypto, so I uninstalled it and did the following instead.)
I downloaded the latest OpenSSL and compiled it manually:
# Build 32-bit version
./config --prefix=$HOME
make && make install
# Build 64-bit version (need both versions for M2Crypto)
make clean && make dclean
./Configure darwin64-x86_64-cc --prefix=$HOME/ssl-x64
make && make install
Then I built "fat" libraries that combined the 32-bit and 64-bit versions:
lipo -create lib/libcrypto.a ssl-x64/lib/libcrypto.a -output lib/libcrypto.a
lipo -create lib/libssl.a ssl-x64/lib/libssl.a -output lib/libssl.a
Then I downloaded, compiled, and installed M2Crypto manually:
python setup.py build build_ext --openssl=$HOME
python setup.py install build_ext --openssl=$HOME
Then, when I followed the rest of your instructions (pip install -e .
, etc.), and fired up the server, everything worked. (The reason it worked when I ran it "manually" before is that I was running u2f_server.py
on a Linux box while the simple HTML was on my local machine, to avoid port conflicts...which is an obvious mistake in hindsight.)
Sources: I cobbled together this solution from here and here.
from django-u2f.
Great, glad you figured it out. Looks like M2Crypto could use some better error reporting? It seems like you can't tell the difference between an invalid certificate and an invalid install of the package?
from django-u2f.
Something like that... Maybe the issue had to do with the CAs that were installed, or something? Or maybe some defaults changed? (Just guessing here.) On top of that, I'm not completely sure which version of OpenSSL was getting used by default: which openssl
returns the version bundled with Postgres.app, so it may well have been that one getting used rather than the one installed with OS X 10.9.
from django-u2f.
Related Issues (20)
- No module django_u2f HOT 2
- Issues with templating HOT 1
- {"errorCode":2} HOT 4
- Challenges should expire
- TemplateDoesNotExist: u2f/login.html
- Support channel binding HOT 2
- ImportError: cannot import name u2f_v2 HOT 2
- Error when adding U2F key via Firefox HOT 6
- Unknown or missing requestId in response when running from HEAD or v0.2.0 HOT 1
- Custom URL paths with Django-U2F HOT 2
- Backup codes shouldn't be sufficient to enable MFA HOT 1
- ErrorCode 2 on Firefox when trying to register HOT 1
- login and verify_key should preserve 'next' redirects
- Enhance templates
- Improve error management in forms
- Ensure i18n is ready
- DeprecationWarning for verifier (upstream issue) HOT 1
- host argument for is_safe_url is changed to allowed_hosts for Django 2.1
- Integration with django-two-factor-auth and/or django-otp HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-u2f.