A little code cleanup.  More argument checking
Make red. cert a row vector.