How to map SSL certificate with IP Address Nginx

Hi all !!

I want to apply SSL Certificate on my domain name mydomain.com instead of IP address, but i don’t know how to do so.

I have already apply all the changes mentioned on this https://frappe.github.io/frappe/user/en/bench/guides/configuring-https.html link.

After applying all the step mentioned on this https://frappe.github.io/frappe/user/en/bench/guides/configuring-https.html link, when i try to access the server using IP address then browser prompt me to add security exception and give me alert this SSL Certificate is only valid for mydomain.com for which i have bought the SSL Certificate.

But when i try to access the server from browser using mydomain.com for which i have bought the SSL Certificate then its show nothing on browser window.

I just wanted to know how i can map myomain.com for which i have bought the SSL Certificate instead of IP address.

I have also insert entry in site_config file of host_name: https: //mydomain.com, but it also didn’t work.

Please guide me for correct resolution if i am failing to implement correct steps.

Regards
Navdeep

Did you try:

https://frappe.github.io/frappe/user/en/bench/guides/lets-encrypt-ssl-setup

Navdeep,

ok a DNS service provider lists and maps mydomain.com to your site’s host IP, correct?

Assuming that, then you have a network or port issue to troubleshoot - try some checks, just substitute with your mydomain.com name:

frappe@erpnext:~/frappe-bench$ nc -v google.com 443
Connection to google.com 443 port [tcp/https] succeeded!

frappe@erpnext:~/frappe-bench$ openssl s_client -connect mail.google.com:443 -state -nbio 2>&1 | grep “^SSL”
SSL_connect:before/connect initialization
SSL_connect:unknown state
SSL_connect:error in unknown state
SSL_connect:SSLv3 read server hello A
SSL_connect:SSLv3 read server certificate A
SSL_connect:SSLv3 read server key exchange A
SSL_connect:SSLv3 read server done A
SSL_connect:SSLv3 write client key exchange A
SSL_connect:SSLv3 write change cipher spec A
SSL_connect:SSLv3 write finished A
SSL_connect:SSLv3 flush data
SSL_connect:error in SSLv3 read server session ticket A
SSL_connect:error in SSLv3 read server session ticket A
SSL_connect:SSLv3 read server session ticket A
SSL_connect:SSLv3 read finished A
SSL handshake has read 3747 bytes and written 421 bytes
SSL-Session:

Here is a guide I found (but have not used)
http://prefetch.net/articles/debuggingssl.html

Sometimes simply rebooting the server is all it takes…

Hi JoEz,

Thanks for your response.
No! I didn’t try this link instead i have bought a SSL Certificate from Authority and want to use that certificate for SSL/TLS security .

Regards
Navdeep

Hi @clarkej !!

Thank you for your response.

@Sometime simply rebooting the server is all it takes !!!
Resolved the error to some extents, it’s works in Development mode, but still facing problem while putting the server in production mode.

Error in Production mode:

Thanks again for helping me!!

Regards
Navdeep