Add cert_self_signed function to simplify verify.

(Imported from upstream's ced6dc5cefca57b08e077951a9710c33b709e99e)
1 file changed