handle ciphers and secureOptions in agentOptions