+ std::vector<std::shared_ptr<CAConfig>> ca;
+ std::time_t maxValidity;
+ std::shared_ptr<CAConfig> getCA() {
+ for( auto it = ca.rbegin(); it != ca.rend(); it++ ) {
+ if( X509_cmp_current_time( ( *it )->notBefore.get() ) < 0 ) {
+ return *it;
+ }
+ }
+
+ return ca[0];
+ }