wbond / asn1crypto

Python ASN.1 library with a focus on performance and a pythonic API
MIT License
335 stars 140 forks source link

ValueError: Value for field "service" of asn1crypto.cms.SvceAuthInfo is not set while constructing asn1crypto.cms.SvceAuthInfo #213

Closed ftbarata closed 3 years ago

ftbarata commented 3 years ago

Hi, I'm getting the error "ValueError: Value for field "service" of asn1crypto.cms.SvceAuthInfo is not set while constructing asn1crypto.cms.SvceAuthInfo"

'attributes': [cms.AttCertAttribute({
                  'type': cms.AttCertAttributeType('authentication_info'),
                  'values': [cms.SvceAuthInfo({
                      'service': GeneralName('directory_name', Name.build({'name':'codigo_de_uso'})),
                      'ident': GeneralName('directory_name', Name.build({'name':CODIGO_DE_USO}))
                  })]
            })],
joernheissler commented 3 years ago

Hello, can't reproduce your problem.

Could you share a minimal but complete code snippet (including imports) that shows your problem?