Small fixes for Certificate Range
Cure for some small issues with encoding