There's more...

It's strongly recommended that you use a certificate from a Certification Authority (CA) instead of a self-created certificate like we did in this recipe.

You can check out https://letsencrypt.org, where you can get your free certificate.

The process of using it is the same; you will just change the value in the --certname parameter.

Get Java EE 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.