Heyho,
in the middlewared.log i find this error quite often:
08:36:51] (ERROR) middlewared.plugins.crypto_.load_utils.get_x509_subject():111 - Unable to parse extension:
I am using an internal ca signed certificate which works without a problem on truenas, but i wonder what middleware stumbles upon. According to the src it’s:
try:
ext_name = re.sub(r"^(\S)", lambda m: m.group(1).upper(), ext.get_short_name().decode())
cert_info[‘extensions’][ext_name] = ‘Unable to parse extension’
cert_info[‘extensions’][ext_name] = ext.str()
except crypto.Error as e:
/**some certificates can have extensions with binary data which we can’t parse without
explicit mapping for each extension. The current case covers the most of extensions nicely
and if it’s required to map certain extensions which can’t be handled by above we can do
so as users request.*/
logger.error(‘Unable to parse extension: %s’, e)
Unfortunately it doesn’t log which cert or extension it has a problem with. Anyone by chance got the same errors ? I can of course just ignore those but would actually like to understand what’s going wrong there.