In the fallowing days i will post a detailed explanation of how the XML is encrypted and how the aes key and certificates are exchanged during the bootstrap... in the mean time... here is the code...
http://pastebin.com/f12f3527a
still waiting for that explanation ;) thx
still waiting xD