Changeset f069052 for fedd/fedd/util.py


Ignore:
Timestamp:
Nov 30, 2008 5:38:16 PM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
05191a6
Parents:
edbc841
Message:

Two changes. Get allow_any_CA checking to work (i.e., self signed certs or
certs signed by an unknown entity) and put more of the ZSI-dependent stuff into
the hidden parts or remote_services. Now those routines will find all the
relevant classes and part names from the naming conventions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd/util.py

    redbc841 rf069052  
    3535        else:
    3636            self.load_cert(my_cert)
    37         if trusted_certs != None: self.load_verify_locations(trusted_certs)
    38         self.set_verify(SSL.verify_peer, 10)
     37
     38        # If no trusted certificates are specified, allow unknown CAs.
     39        if trusted_certs:
     40            self.load_verify_locations(trusted_certs)
     41            self.set_verify(SSL.verify_peer, 10)
     42        else:
     43            self.set_verify(SSL.verify_peer, 10,
     44                callback=SSL.cb.ssl_verify_callback_allow_unknown_ca)
    3945
    4046def pack_id(id):
Note: See TracChangeset for help on using the changeset viewer.