OCSP response verification

I need to check certificate status in my project and I want to discover working principle of OCSP response verification before coding. my certificate creation hierarchy is root.pem > kys.pem > mycert.pem.

I am running openssl commands at given order:

$ openssl x509 -noout -ocsp_uri -in mycert.pem 

www.ocspaddress.com

$  openssl ocsp  -issuer kys.pem -cert mycert.pem  -resp_text -url www.ocspaddress.com

and it gives error:

Response Verify Failure
140341351671456:error:0409C08B:rsa routines:RSA_ITEM_VERIFY:invalid trailer:rsa_ameth.c:540:
140341351671456:error:27069075:OCSP routines:OCSP_basic_verify:signature failure:ocsp_vfy.c:101:
140341351671456:error:0409C08B:rsa routines:RSA_ITEM_VERIFY:invalid trailer:rsa_ameth.c:540:
140341351671456:error:27069075:OCSP routines:OCSP_basic_verify:signature failure:ocsp_vfy.c:101:
mycert.pem: good
    This Update: Jan 25 10:38:39 2018 GMT