I am trying to export a cert without the private key as as BASE-64 encoded file, same as exporting it from windows. When exported from windows I am able to open the .cer fil
//however, missing the "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----"
These missing lines are optional. CA may generate them or not depending on settings. For all practical reasons they can be removed from the Base64 encoded file.