Welcome! Log In Create A New Profile

Advanced

Re: Nginx SSL Setup

Rainer Duffner
November 03, 2016 05:48PM
> Am 03.11.2016 um 20:40 schrieb Ashish Gupta <mail2ashish.g@gmail.com>:
>
> Hello Team,
>
> I am using NGINX as a web server ot host some of the file and I need some help with the SSL Setup. Is there a way to create a keystore and use that in the configuration for SSL setup?
>
> I don't want to use the self signed certificate, i need sign the certificate with the company CA and import the Root and Issuing certificates.


NGINX doesn’t use keystores (jks).

You need to convert your (I assume) PKCS12 files into PEM files, split the private key and the certificates and configure them according to the documentation.

http://nginx.org/en/docs/http/ngx_http_ssl_module.html http://nginx.org/en/docs/http/ngx_http_ssl_module.html

or Mozilla’s interactive cheat-sheet:

https://mozilla.github.io/server-side-tls/ssl-config-generator/ https://mozilla.github.io/server-side-tls/ssl-config-generator/

Though, of course, it’s always good to read the documentation provided by NGINX Inc, which is thankfully always very up to date and accurate.

Google „openssl convert pkcs12 pem“

Off the top of my head it looks like „openssl pkcs12 -in your.p12 -out your.pem -nodes“

See this for creating key and csr:

https://support.rackspace.com/how-to/generate-a-csr-with-openssl/ https://support.rackspace.com/how-to/generate-a-csr-with-openssl/

(or various other links that google spits out)



Rainer_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx SSL Setup

Ashish Gupta November 03, 2016 03:42PM

Re: Nginx SSL Setup

Rainer Duffner November 03, 2016 05:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready