Add min / max macros
Add a bunch of certificate functions