certificates refactor & fix ->duration
Merge pull request #21 from kleer-la/refactor-cert

certificates refactor & fix ->duration