Extract x509 for use with DIRAC

In order to use DIRAC you need to initialize it with a users grid certificate. The certificate can be stored in the IAM. It needs to be retrieved and then used by the DIRAC API to init the user.