Fixes for ssl certificates