summaryrefslogtreecommitdiffstats
path: root/ipa-python/ipa-python.spec
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-07-29 11:27:11 -0400
committerRob Crittenden <rcritten@redhat.com>2009-07-30 13:55:29 -0400
commit8ab2977eeb79571ed6f976a12a51ed2b75cdc12b (patch)
tree7474f87987ae53a5b197114870b2d5ccad61d500 /ipa-python/ipa-python.spec
parentd2e1de019b13ba2b322fb7668b6c6ff664ae3b1a (diff)
Backport certs.py patches from master.
Fix deprecation warning for the sha library on Python 2.6 sha has been replaced by hashlib. We need to support Python 2.4 - 2.6 so this will use hashlib if available but fall back onto sha if not. Fortunately they use the same API for the function we need. 509042 Identify CAs to trust from an imported PKCS#12 file We used to use certutil -O to determine the cert chain to trust. This behavior changed in F-11 such that untrusted CAs are not displayed. This is only used when we import PKCS#12 files so use pk12util -l to display the list of certs and keys in the file to determine the nickname(s) of the CAs to trust. 509111 No need to trust NSS built-in CA's, more specific regex for finding CA nickname - Add some logging so we have a better idea of what happened if things fail - Default to self-signed CA to trust if one is not found. This will fix the self-signed CA case where certutil doesn't return untrusted CA's in -O output. - Remove unused httplib import
Diffstat (limited to 'ipa-python/ipa-python.spec')
0 files changed, 0 insertions, 0 deletions