1# 2# This file is part of pyasn1-modules software. 3# 4# Created by Russ Housley. 5# 6# Copyright (c) 2019, Vigil Security, LLC 7# License: http://snmplabs.com/pyasn1/license.html 8# 9# Device Owner Attribute 10# 11# ASN.1 source from: 12# https://www.rfc-editor.org/rfc/rfc5916.txt 13# 14 15from pyasn1.type import univ 16 17from pyasn1_modules import rfc5280 18 19 20# Device Owner Attribute 21 22id_deviceOwner = univ.ObjectIdentifier((2, 16, 840, 1, 101, 2, 1, 5, 69)) 23 24at_deviceOwner = rfc5280.Attribute() 25at_deviceOwner['type'] = id_deviceOwner 26at_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