+void checkCRLs( std::shared_ptr<Signer> sign ) {
+ std::cout << "Signing CRLs" << std::endl;
+
+ for( auto& x : CAs ) {
+ std::cout << "Checking: " << x.first << std::endl;
+
+ if( !x.second->crlNeedsResign() ) {
+ std::cout << "Skipping Resigning CRL: " + x.second->name << std::endl;
+ continue;
+ }
+
+ std::cout << "Resigning CRL: " + x.second->name << std::endl;
+
+ try {
+ std::vector<std::string> serials;
+ std::pair<std::shared_ptr<CRL>, std::string> rev = sign->revoke( x.second, serials );
+ } catch( const char* c ) {
+ std::cout << "Exception: " << c << std::endl;
+ }
+ }
+}
+