Initial attempt to handle multiple certificates.  Not entirely sure
this is the way we want to go, but it's a start.