impl aicp ssl read and writ