Do we really want to be exposing public and private keys? Otherwise use environment variables. Take a look at what I did to your active directory code.