add_ext( caCert, target, NID_info_access, "OCSP;URI:http://ocsp.cacert.org" );
add_ext( caCert, target, NID_crl_distribution_points, "URI:http://crl.cacert.org/class3-revoke.crl" );
+ if( sans.size() == 0 ) {
+ return;
+ }
+
std::shared_ptr<GENERAL_NAMES> gens = std::shared_ptr<GENERAL_NAMES>(
sk_GENERAL_NAME_new_null(),
[]( GENERAL_NAMES * ref ) {