Could not parse certificate

I am facing below issues when try to initialize X509 certificate . Am I
missed something here. Please help

store = OpenSSL::X509::Store.new
store.add_cert(OpenSSL::X509::Certificate.new(File.open(’/home/khirod/security.keystore’)))

Here it throws :

OpenSSL::X509::CertificateError: Could not parse certificate:
java.io.IOException: Empty input.

NOTE : storetype =jceks’

Let me know for any further information.

Regards,
Khirod