ABAP Function for encode Certificate in base 64

Hello Folks,

We have the issue regarding Electronic Invoicing Mexico since SAP don't support the generation in base 64 for Certificado (Digital Seal Certificate)issued by Taxes Authorities.

We still testing with some functions in order to generate the string in base 64 for example SSFC_BASE64_CODE , SSF_KRN_SIGN_BY_AS without sucessful.

Please if someone have some idea will be well received.