Good morning,
Currently I have an application built in PHP, Codeigniter and Jquery. But a specific part I was forced to build a Java application that the user must download to his personal computer for a specific topic, the information captured by this .jar publish it through the package com.sun.net.httpserver of java and the I show in the browser by the port that is required access to this page with link and from the trial version of the application I have no problems in acquiring the data with the $ .get function of Jquery, the problem arises in the application that is behind an https since the security of the current browsers prevent access from an https page to an http, for the domain of localhost I have generated a real domain, something similar to what the url does lvh.me which whenever it is accessed points to localhost, and even I generated a certificate to use the https which I put in my work machine (Apache, linux), in the PC a friend (Apache, Windows) and my work server (IIS, windows) and tells me the secure connection to the site in question.
My problem is that to add the certificate in a .jks file, which is the way in which the file is usually read in an application in .jar, I establish the https connection, but this tells me it is not safe since the information of the issuer of the certificate is not recognized.
Will someone be able to guide me on how to merge the .crt and .key files into a .jks file without leaving this verification failure?
My previous .jks file was generated with this guide
Samples of generated connections
For reasons of confidentiality I can not add domain information, the information regarding the certificate I can expose as an image covering information on the domain.