As the error message says the certificate validation is failing and hence it is not allowing you to commit the config. Most often it is related to the date and timestamp mentioned in "Not-Before" and "Not-After" section of the certificate.
From CLI, please share the outputs of the following command:
> show version
> show system uptime
> show security pki ca-certificate detail
> show security pki local-certificate detail
> show configuration security pki | display set
Thanks,
Kinshuk