4

I am looking through a set of PKI certificates and key strings that are specified in a kubernetes yaml file. They are used for testing. Some of the strings are keyed (as in yaml key-value) as crt.pem. All of the strings have the following form:

LS0...

The typical encoding that I have seen for .pem files is ASCII base64 and begins with -----BEGIN CERTIFICATE-----.

Does someone know what this encoding is?

Edit: grammar & phrasing

1 Answer 1

6

I would suggest that this is just base64 encoded PEM:

$ echo "-----BEGIN CERTIFICATE-----" | base64
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCg==

$ echo "-----BEGIN CERTIFICATE-----" | base64 | cut -c-3
LS0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .