#9015 python-cryptography 35 and PEM headers
Closed: fixed 2 years ago by frenaud. Opened 2 years ago by slev.

python-cryptography 35 rejects legacy PEM headers:
https://github.com/pyca/cryptography/issues/6340

allowed again in:
https://github.com/pyca/cryptography/commit/51221b2c48cd04fa6e31099d949f5d7bd564984d

pkispawn on IPA installation with external CA generates CSR with legacy headers:
BEGIN NEW CERTIFICATE REQUEST/END NEW CERTIFICATE REQUEST.
create_request:
https://github.com/dogtagpki/pki/blob/292ec6037cec3259f81d2a4cb4aeb7c41d7106d9/base/common/python/pki/nssdb.py#L811-L815

            # add header and footer
            with open(request_file, 'w') as f:
                f.write('-----BEGIN NEW CERTIFICATE REQUEST-----\n')
                f.write(b64_request)
                f.write('-----END NEW CERTIFICATE REQUEST-----\n')

So, IPA + external CA is broken against python-cryptography 35.


Metadata Update from @frenaud:
- Issue tagged with: test-failure

2 years ago

Metadata Update from @frenaud:
- Issue tagged with: tracker

2 years ago

The issue should be fixed in rawhide with the update of python-cryptography to python-cryptography-36.0.0-1.fc36.
Let's wait for next week-end nightly run...

Closing, the update to python-cryptography-36.0.0-1.fc36 fixes the issue as can be seen in PR #1336

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata