We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d912a9 commit ccc9230Copy full SHA for ccc9230
credentials/generate-revocation-set.py
@@ -84,7 +84,7 @@ def parse_vid_pid_from_distinguished_name(distinguished_name):
84
85
# Fallback method to get the VID/PID, encoded in CN as "Mvid:FFFF Mpid:1234"
86
if vid is None and pid is None:
87
- cn = distinguished_name.get_attributes_for_oid(x509.NameOID.COMMON_NAME)[0].value
+ cn = distinguished_name.get_attributes_for_oid(NameOID.COMMON_NAME)[0].value
88
vid = extract_fallback_tag_from_common_name(cn, 'Mvid:')
89
pid = extract_fallback_tag_from_common_name(cn, 'Mpid:')
90
0 commit comments