You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to get a certificate request from a certificate does not work. The error is:
[root@pki /]# pki-server ca-cert-request-find --cert-file ca3_s.pem
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pki/server/pkiserver.py", line 41, in <module>
cli.execute(sys.argv)
File "/usr/lib/python3.11/site-packages/pki/server/cli/__init__.py", line 145, in execute
super().execute(args)
File "/usr/lib/python3.11/site-packages/pki/cli/__init__.py", line 217, in execute
module.execute(module_args)
File "/usr/lib/python3.11/site-packages/pki/cli/__init__.py", line 217, in execute
module.execute(module_args)
File "/usr/lib/python3.11/site-packages/pki/cli/__init__.py", line 217, in execute
module.execute(module_args)
[Previous line repeated 1 more time]
File "/usr/lib/python3.11/site-packages/pki/server/cli/ca.py", line 642, in execute
results = subsystem.find_cert_requests(cert=cert)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pki/server/subsystem.py", line 2245, in find_cert_requests
escaped_value = ldap.filter.escape_filter_chars(pki.nssdb.convert_cert(cert, 'pem' ,'base64'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pki/nssdb.py", line 131, in convert_cert
return convert_data(cert_data, input_format, output_format,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pki/nssdb.py", line 105, in convert_data
line = line.rstrip('\r\n')
^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'
Trying to get a certificate request from a certificate does not work. The error is:
A simple conversion of the certificate from binary to string in base/server/python/pki/server/cli/ca.py:642 solve the issue but the request is not found.
The text was updated successfully, but these errors were encountered: