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

Hi Khirod,

I believe that it is due to method: add_cert expects a certificate file
rather another keystone.
A certificate file would be like *.pem or *.cer, *.crt

Regards