Fixes of the CA generator

https://gitlab.labs.nic.cz/turris/nuci/merge_requests/28