Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/peppol_py/smp.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_service_info_for_participant_from_smp(participant_id, document_type, tes
endpoint_url = endpoint_e.findtext('./{*}EndpointReference/{*}Address')
certificate = endpoint_e.findtext('./{*}Certificate')
if certificate:
certificate = b'-----BEGIN CERTIFICATE-----\n' + certificate.encode('ascii') + b'\n-----END CERTIFICATE-----'
certificate = b'-----BEGIN CERTIFICATE-----\n' + certificate.strip().encode('ascii') + b'\n-----END CERTIFICATE-----'

break

Expand Down
Loading