Пример контроллера:
Код: Выделить всё
@Path("/test")
@ApplicationScoped
public class TestEndpointController {
@GET
public Response executeRule() {
return Response.status(200).entity("Working").build();
}
}
Сгенерировал самозаверяющий сертификат и настроил его в файле application.yaml:
Код: Выделить всё
server:
port: 8080
host: 0.0.0.0
ssl:
private-key:
keystore-resource-path: "keystore.p12"
keystore-passphrase: "changeit"
experimental:
http2:
enable: true
max-content-length: 16384
keytool -genkeypair -alias localhost -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore keystore.p12 -validity 365
Но когда я пытаюсь подключиться к конечной точке с помощью https, я получаю ошибку ниже
Этот сайт не может обеспечить безопасное соединение
Подробнее здесь: https://stackoverflow.com/questions/787 ... -localhost
Мобильная версия