[ https://issues.apache.org/jira/browse/TIKA-3719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17524526#comment-17524526 ]
Daniel Coldrick commented on TIKA-3719: --------------------------------------- I managed to get it working with https by using this example under "Configuring [HTTP/2|https://http2.github.io/] over [TLS":|https://en.wikipedia.org/wiki/Transport_Layer_Security] [https://www.javacodegeeks.com/2022/01/so-you-want-to-expose-your-jax-rs-services-over-http-2.html] {code:java} String url = "https://" + host + ":" + port + "/"; KeyStoreType keystore = new KeyStoreType(); keystore.setType("JKS"); keystore.setPassword("1"); keystore.setResource("keystore.jks"); KeyManagersType kmt = new KeyManagersType(); kmt.setKeyStore(keystore); kmt.setKeyPassword("1"); TLSServerParameters parameters = new TLSServerParameters(); parameters.setKeyManagers(TLSParameterJaxBUtils.getKeyManagers(kmt)); JettyHTTPServerEngineFactory factory = new JettyHTTPServerEngineFactory(); sf.setAddress(url); sf.setResourceComparator(new ProduceTypeResourceComparator()); factory.setBus(sf.getBus()); BindingFactoryManager manager = sf.getBus().getExtension(BindingFactoryManager.class); factory.setTLSServerParametersForPort(host, port, parameters); JAXRSServerFactoryCustomizationUtils.customize(sf); {code} I changed the above code in TikaServerProcess and managed to spawn a https Jetty Server, hopefully that might be of some use to you guys? > Tika Server Ability to Run HTTPs > -------------------------------- > > Key: TIKA-3719 > URL: https://issues.apache.org/jira/browse/TIKA-3719 > Project: Tika > Issue Type: Wish > Components: tika-server > Affects Versions: 2.3.0 > Reporter: Daniel Coldrick > Priority: Minor > > We need the ability to run TIKA server as a https end point, I can't see > anything in the config that allows for this. > Looks like I'm not the only one: > [https://stackoverflow.com/questions/70355551/apache-tika-convert-apache-tika-server-rest-endpointsjax-rs-http-to-https] > > If anyone can point to some documentation on how it might be possible it > would be really appreciated. > > Thanks -- This message was sent by Atlassian Jira (v8.20.7#820007)