You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Su...@cognizant.com on 2018/05/30 14:18:37 UTC

Access REST API using HTTPS

Hi,

I did enable SSL on, but I could not access REST API using https.
I was trying to access as below, it does not work.

Please let me know if I need to configure anything else..?

https://localhost:8443/ignite?cmd=top&attr=true&mtr=true&ip=127.0.0.1

My Configuration is as below:

<property name="connectorConfiguration">
                  <bean class="org.apache.ignite.configuration.ConnectorConfiguration">
                        <property name="jettyPath" value="src/main/resources/META-INF/jetty-server.xml" />
                  </bean>
            </property>

            <property name="sslContextFactory">
                  <bean class="org.apache.ignite.ssl.SslContextFactory">
                        <property name="keyAlgorithm" value="IbmX509" />
                        <property name="keyStoreFilePath" value="src/main/resources/server.jks" />
                        <property name="keyStorePassword" value="123456" />
                        <property name="trustStoreFilePath" value="src/main/resources/trust.jks" />
                        <property name="trustStorePassword" value="123456" />
                        <property name="trustManagers">
                              <bean class="org.apache.ignite.ssl.SslContextFactory"
                                    factory-method="getDisabledTrustManager" />
                        </property>
                  </bean>
            </property>





I could see "tls/ssl=on" in my logs.

[30-05-2018 19:42:48][INFO ][main][IgniteKernal] Security status [authentication=off, tls/ssl=on]


This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.

Re: Access REST API using HTTPS

Posted by "ilya.kasnacheev" <il...@gmail.com>.
Hello!

Have you tried setting sslEnabled=true property on ConnectorConfiguration,
setting sslFactory also?

Regards,



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/