code: def _get_subject_alternative_names(self, ext):
          
          values = []
          for san in ext.value:
              if isinstance(san.value, string):
                  # Pass on simple string SAN values
                  values.append(san.value)
              elif isinstance(san.value, x509.Name):
                  # In theory there there could be >1 RDN here...
                  values.extend(
                      self._name_attribute_to_string(rdn) for rdn in san.value.rdns
                  )
          return values
docs: Return a list of Subject Alternative Name values for the given x509
          extension object.