[46793255] return error if given an past expiration time

Signed-off-by: Henry Chen <hchen@vmware.com>
Merge pull request #12 from Henry-CF/bugfix

[46793255] return error if given a past expiration time