Refactored certificate management for the vici and stroke interfaces