Fix bug in finalize section of base64 encode for SSL cert

Hi, as fix suggested in open issue "Wrong SSL Cert base64 encode in proto-ssl.c".

Regards,