ssl micro payara

335 views
Skip to first unread message

Eric Berryman

unread,
May 23, 2017, 11:34:00 AM5/23/17
to Payara Forum
Hello!

I'm trying to get ssl https working on micro payara.  I've added the --sslport 8181, is there anything else?

Thank you!

Steve Millidge

unread,
May 23, 2017, 12:51:50 PM5/23/17
to Payara Forum
Hi Eric,

That's all you need to do for development purposes using the self-signed certs. If you need production certs you can create a keystore and use the standard -Djavax.net.ssl.keystore and truststore system properties to switch certs.

Steve

Eric Berryman

unread,
May 23, 2017, 1:04:02 PM5/23/17
to Payara Forum

Since that's it, I will be more specific.  It doesn't seem to work for me:
[2017-05-23T12:57:39.418-0400] [Payara Micro 4.1] [INFO] [AS-WEB-GLUE-00198] [ja
vax.enterprise.web] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 14955586594
18] [levelValue: 800] Created HTTP listener http-listener on host/port 0.0.0.0:8
080

[2017-05-23T12:57:39.447-0400] [Payara Micro 4.1] [SEVERE] [AS-WEB-GLUE-00167] [
javax.enterprise.web] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 149555865
9447] [levelValue: 1000] Error adding HttpProbes. NetworkListener https-listener
s GrizzlyProxy is NULL

making a uber jar as such:
<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.5.0</version>
                <dependencies>
                    <dependency>
                        <groupId>fish.payara.extras</groupId>
                        <artifactId>payara-micro</artifactId>
                        <version>4.1.1.162</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <id>payara-uber-jar</id>
                        <phase>package</phase>
                        <goals>
                            <goal>java</goal>
                        </goals>
                        <configuration>
                            <mainClass>fish.payara.micro.PayaraMicro</mainClass>
                            <arguments>
                               <argument>--deploy</argument>
                               <argument>${basedir}/target/${project.build.finalName}.war</argument>
                               <argument>--outputUberJar</argument>
                               <argument>${basedir}/target/${project.build.finalName}.jar</argument>
                            </arguments>
                            <includeProjectDependencies>false</includeProjectDependencies>
                            <includePluginDependencies>true</includePluginDependencies>
                            <executableDependency>
                                <groupId>fish.payara.extras</groupId>
                                <artifactId>payara-micro</artifactId>
                            </executableDependency>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Eric Berryman

unread,
May 23, 2017, 1:59:59 PM5/23/17
to Payara Forum


Okay, upgrading to 4.1.2.172
(and following the new setup)


Fixed the issue.

Thank you!
Reply all
Reply to author
Forward
0 new messages