added in remote cert fetching code based on session
implemented  yet not tested forging of certificate based on serial number and DN