Ignore:
Timestamp:
24/02/10 16:01:49 (10 years ago)
Author:
pjkersha
Message:

Merging in changes from 6557

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/branches/ndg-security-1.5.x/ndg_security_test/ndg/security/test/unit/wsgi/myproxy/test_myproxy.py

    r6202 r6633  
    2020from paste.deploy import loadapp 
    2121 
    22 from M2Crypto import X509 
     22from M2Crypto import X509, RSA, EVP, m2 
    2323 
    2424from ndg.security.test.unit import BaseTestCase 
     
    210210         
    211211        # Create key pair 
     212        nBitsForKey = 2048 
    212213        keys = RSA.gen_key(nBitsForKey, m2.RSA_F4) 
    213214        certReq = X509.Request() 
     
    224225        certReq.set_subject_name(x509Name) 
    225226         
    226         certReq.sign(pubKey, messageDigest) 
     227        certReq.sign(pubKey, "md5") 
    227228 
    228229        pemCertReq = certReq.as_pem() 
Note: See TracChangeset for help on using the changeset viewer.