update date and md for key based authentication