Project

Profile

Help

Task #3676

closed

Story #3637: As a user, I can run pulp in a FIPS-enabled environment

Get pulp-admin login working in FIPS mode

Added by daviddavis over 6 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
2.16.2
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 37
Quarter:

Description

When I run pulp-admin login, I get the following error:

May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: Unhandled Exception
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) substring not found
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) Traceback (most recent call last):
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)     response = wrapped_callback(request, *callback_args, **callback_kwargs)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)     return self.dispatch(request, *args, **kwargs)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 88, in dispatch
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)     return handler(request, *args, **kwargs)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)   File "/home/vagrant/devel/pulp/server/pulp/server/webservices/views/decorators.py", line 241, in _auth_decorator
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)     return _verify_auth(self, operation, super_user_only, method, *args, **kwargs)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)   File "/home/vagrant/devel/pulp/server/pulp/server/webservices/views/decorators.py", line 195, in _verify_auth
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)     value = method(self, *args, **kwargs)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)   File "/home/vagrant/devel/pulp/server/pulp/server/webservices/views/root_actions.py", line 25, in post
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)     key, certificate = factory.cert_generation_manager().make_admin_user_cert(user)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)   File "/home/vagrant/devel/pulp/server/pulp/server/managers/auth/cert/cert_generator.py", line 31, in make_admin_user_cert
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)     return self.make_cert(self.encode_admin_user(user), expiration)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)   File "/home/vagrant/devel/pulp/server/pulp/server/managers/auth/cert/cert_generator.py", line 61, in make_cert
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)     private_key_pem = _make_priv_key()
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)   File "/home/vagrant/devel/pulp/server/pulp/server/managers/auth/cert/cert_generator.py", line 189, in _make_priv_key
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416)     pem_str = output[output.index("-----BEGIN RSA PRIVATE KEY-----"):]
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) ValueError: substring not found

Also available in: Atom PDF