2

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

errolflynn
  • 123
  • 4

1 Answers1

4

I would suggest that this is just base64 encoded PEM:

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

$ echo "-----BEGIN CERTIFICATE-----" | base64 | cut -c-3
LS0
StackzOfZtuff
  • 17,783
  • 1
  • 50
  • 86
Steffen Ullrich
  • 184,332
  • 29
  • 363
  • 424