ssl: refactor some code
ssl: refactor some code

Use the cert record

jj1bdx/otp,potatosalad/otp,getong/otp,uabboli/otp,jj1bdx/otp,getong/otp,g-andrade/otp,ferd/otp,bjorng/otp,dumbbell/otp,potatosalad/otp,bjorng/otp,vinoski/otp,rlipscombe/otp,jj1bdx/otp,mikpe/otp,dumbbell/otp,vinoski/otp,erlang/otp,ferd/otp,isvilen/otp,isvilen/otp,erlang/otp,getong/otp,ferd/otp,mikpe/otp,dumbbell/otp,uabboli/otp,rlipscombe/otp,isvilen/otp,getong/otp,isvilen/otp,dgud/otp,uabboli/otp,emacsmirror/erlang,dumbbell/otp,jj1bdx/otp,bjorng/otp,g-andrade/otp,g-andrade/otp,dgud/otp,dgud/otp,rlipscombe/otp,emacsmirror/erlang,vinoski/otp,jj1bdx/otp,dumbbell/otp,isvilen/otp,erlang/otp,erlang/otp,mikpe/otp,uabboli/otp,dumbbell/otp,emacsmirror/erlang,ferd/otp,ferd/otp,potatosalad/otp,potatosalad/otp,uabboli/otp,emacsmirror/erlang,rlipscombe/otp,ferd/otp,g-andrade/otp,mikpe/otp,isvilen/otp,erlang/otp,ferd/otp,ferd/otp,potatosalad/otp,rlipscombe/otp,jj1bdx/otp,uabboli/otp,vinoski/otp,g-andrade/otp,mikpe/otp,jj1bdx/otp,dumbbell/otp,dgud/otp,erlang/otp,vinoski/otp,mikpe/otp,uabboli/otp,vinoski/otp,emacsmirror/erlang,dgud/otp,emacsmirror/erlang,erlang/otp,emacsmirror/erlang,rlipscombe/otp,isvilen/otp,mikpe/otp,bjorng/otp,emacsmirror/erlang,isvilen/otp,isvilen/otp,vinoski/otp,dumbbell/otp,getong/otp,vinoski/otp,bjorng/otp,uabboli/otp,bjorng/otp,g-andrade/otp,emacsmirror/erlang,potatosalad/otp,potatosalad/otp,mikpe/otp,potatosalad/otp,dumbbell/otp,getong/otp,vinoski/otp,isvilen/otp,ferd/otp,rlipscombe/otp,bjorng/otp,dgud/otp,rlipscombe/otp,bjorng/otp,potatosalad/otp,dgud/otp,vinoski/otp,bjorng/otp,mikpe/otp,g-andrade/otp,g-andrade/otp,rlipscombe/otp,dumbbell/otp,bjorng/otp,emacsmirror/erlang,potatosalad/otp,getong/otp,g-andrade/otp,g-andrade/otp,dgud/otp,getong/otp,dgud/otp,erlang/otp,jj1bdx/otp,erlang/otp,jj1bdx/otp,getong/otp,rlipscombe/otp,dgud/otp,erlang/otp,uabboli/otp,mikpe/otp,getong/otp,jj1bdx/otp