Changes between Version 21 and Version 22 of T12_Security/WS-Security


Ignore:
Timestamp:
11/09/06 09:29:54 (13 years ago)
Author:
pjkersha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • T12_Security/WS-Security

    v21 v22  
    7373 
    7474== XML Encryption == 
    75 Tackle digital signature first :) 
     75Looking at RSA encryption with M2Crypto: `M2Crypto.RSA.public_encrypt` crashes when it makes a call to the `check_key` method.  This occurs when the RSA key is loaded from an X.509 cert.: 
     76 
     77{{{ 
     78#!python 
     79from M2Crypto import X509, RSA 
     80 
     81x509Cert = X509.load_cert(certFilePath) 
     82 
     83# Extract RSA public key from the cert 
     84rsaPubKey = x509Cert.get_pubkey().get_rsa() 
     85  
     86# Crashes HERE    
     87encryptedData = rsaPubKey.public_encrypt(data, RSA.pkcs1_padding)     
     88}}} 
     89 
     90Tried recompiliny and re-installing M2Crypto on two different machines but same result.  As a fudge, commented out `check_key` call in `public_encrypt`. 
    7691 
    7792== WSDL + WS-Security? ==