Sorry, I should have included the values.
I wasn't sure if the values should be comma delimited or not. I tried both
comma and space delimited.
KU:
digitalSignature, keyCertSign, cRLSign
EKU:
serverAuth
pyOpenSSL version:
pyOpenSSL-17.2.0-9.1.noarch
On Tue, Nov 14, 2017 at 6:32 PM, Durand fabrice via PacketFence-users <
packetfence-users@lists.sourceforge.net> wrote:
> Hello Jason,
>
> i did a try and i am not able to reproduce the error.
>
> So it can be an issue with the keyUsage value or an issue with pyopenssl.
>
> What did you define for keyUsage and can you give me the version of
> pyopenssl you use ?
>
> rpm -qa|grep -i openssl
>
> Regards
>
> Fabrice
>
>
>
> Le 2017-11-14 à 16:14, Jason Sloan via PacketFence-users a écrit :
>
> Error:
> Environment:
>
> Centos 7 - Clean Install
>
> Steps to reproduce:
> Install Packetfence-PKI
> Browse to PKI Admin site & login.
> Complete all 4 steps of initial setup wizard & Submit
>
> Error condition occurs.
>
> Looks like a bad variable type, probably also related to the newer django
> version?
>
>
>
>
>
> Error details:
>
> Request Method: POST
> Request URL: https://localhost:9393/pki/init_wizard/
>
> Django Version: 1.8.1
> Python Version: 2.7.5
> Installed Applications:
> ('django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'rest_framework',
> 'rest_framework.authtoken',
> 'bootstrap3',
> 'pki')
> Installed Middleware:
> ('django.contrib.sessions.middleware.SessionMiddleware',
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> 'inverse.middleware.SecurityMiddleware')
>
>
> Traceback:
> File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in
> get_response
> 132. response = wrapped_callback(request,
> *callback_args, **callback_kwargs)
> File "/usr/lib/python2.7/site-packages/django/contrib/auth/decorators.py"
> in _wrapped_view
> 22. return view_func(request, *args, **kwargs)
> File "/usr/lib/python2.7/site-packages/django/views/generic/base.py" in
> view
> 71. return self.dispatch(request, *args, **kwargs)
> File "/usr/lib/python2.7/site-packages/formtools/wizard/views.py" in
> dispatch
> 237. response = super(WizardView, self).dispatch(request, *args,
> **kwargs)
> File "/usr/lib/python2.7/site-packages/django/views/generic/base.py" in
> dispatch
> 89. return handler(request, *args, **kwargs)
> File "/usr/lib/python2.7/site-packages/formtools/wizard/views.py" in post
> 300. return self.render_done(form, **kwargs)
> File "/usr/lib/python2.7/site-packages/formtools/wizard/views.py" in
> render_done
> 357. **kwargs)
> File "/usr/local/packetfence-pki/pki/views.py" in done
> 539. certif.sign()
> File "/usr/local/packetfence-pki/pki/models.py" in sign
> 61. cert.add_extensions([crypto.X509Extension("keyUsage",
> True,self.key_usage)])
> File "/usr/lib/python2.7/site-packages/OpenSSL/crypto.py" in __init__
> 723. extension = _lib.X509V3_EXT_nconf(_ffi.NULL, ctx,
> type_name, value)
>
> Exception Type: TypeError at /pki/init_wizard/
> Exception Value: initializer for ctype 'char *' must be a str or list or
> tuple, not unicode
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> PacketFence-users mailing
> listPacketFence-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/packetfence-users
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users