Skip to content

Support PEM trust bundles with explanatory text in it #6572

@abvaidya

Description

@abvaidya

Is your feature request related to a problem? Please describe.
PEM format can export explanatory text inside it ( ref: https://datatracker.ietf.org/doc/html/rfc7468#section-5.2 ) but https://github.com/open-telemetry/opentelemetry-java/blob/main/exporters/common/src/main/java/io/opentelemetry/exporter/internal/TlsUtil.java#L130 expects only PEM encoded content and nothing else

Describe the solution you'd like
Update the code in TLSUtil.java to be able to handle explanatory text

Describe alternatives you've considered
A workaround would be to convert existing PEM bundle(s) with explanatory text to the one without explanatory text.

Additional context
I am willing to submit a PR.

Thank you.

Metadata

Metadata

Assignees

Labels

Feature RequestSuggest an idea for this project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions