codekingpro/portable-devtools
114k
1#2# This file is part of pyasn1-modules software.3#4# Created by Russ Housley.5#6# Copyright (c) 2019, Vigil Security, LLC7# License: http://snmplabs.com/pyasn1/license.html8#9# Device Owner Attribute10#11# ASN.1 source from:12# https://www.rfc-editor.org/rfc/rfc5916.txt13#14 15from pyasn1.type import univ16 17from pyasn1_modules import rfc528018 19 20# Device Owner Attribute21 22id_deviceOwner = univ.ObjectIdentifier((2, 16, 840, 1, 101, 2, 1, 5, 69))23 24at_deviceOwner = rfc5280.Attribute()25at_deviceOwner['type'] = id_deviceOwner26at_deviceOwner['values'][0] = univ.ObjectIdentifier()27 28 29# Add to the map of Attribute Type OIDs to Attributes in rfc5280.py.30 31_certificateAttributesMapUpdate = {32 id_deviceOwner: univ.ObjectIdentifier(),33}34 35rfc5280.certificateAttributesMap.update(_certificateAttributesMapUpdate)36 