+ if( caIterator == CAs.end() ) {
+ logger::error( "ERROR: Signing CA specified in request for an OCSP cert could not be loaded." );
+ throw std::runtime_error( "CA-key for OCSP cert not found" );
+ }
+
+ ca = caIterator->second;
+ logger::note( "Trying to fetch OCSP-profile" );
+ prof = &profiles.at( "0100-ocsp" );
+ logger::note( "Done with it" );
+ } else {
+ logger::note( "FINE: Profile name is: ", cert->profile );
+
+ prof = &profiles.at( cert->profile );
+ logger::note( "FINE: Profile ID is: ", prof->id );
+ ca = prof->getCA();
+ }