wp-cli command throws error : “SSL routines:tls_process_server_certificate:certificate verify failed” while querying https website

wp-cli command throws error : “SSL routines:tls_process_server_certificate:certificate verify failed” while querying https website

error code: 523