Since you cannot convert the image into a certificate, you must and then attach the image to it .
Automatically strip the white paper background from the JPG so only the ink remains.
openssl req -new -key mykey.key -out myrequest.csr
If you are trying to turn a into a certificate, it is not possible.