Enabling SSL for ASTPP on nginx

675 views
Skip to first unread message

Ricky

unread,
Nov 2, 2016, 11:07:23 PM11/2/16
to ASTPP
I have enabled SSL on nginx but when I try to connect to the dashboard the page does not render at all.  Has anyone gotten ssl to work correctly? 


edit /etc/nginx/sites-available/astpp.conf

added

 SSLEngine on
 SSLCertificateFile /etc/cert.pem
 SSLCertificateKeyFile /etc/privkeycert.pem

Andy Cook

unread,
Nov 3, 2016, 12:37:40 AM11/3/16
to ASTPP
Yes,We make it working using nginx configuration file.

Ricky

unread,
Nov 3, 2016, 7:24:17 AM11/3/16
to ASTPP
Can you provide some guidance? Did you change the default file or the astpp.conf file?

Gilbert Arias

unread,
Nov 3, 2016, 7:27:03 AM11/3/16
to ASTPP
you just need to edit your astpp file like this: 

server {

listen   443;

ssl    on;
ssl_certificate    /etc/ssl/your_domain_name.pem; 
(or bundle.crt)
ssl_certificate_key    /etc/ssl/your_domain_name.key;

server_name your.domain.com;
access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
location / {
root   /home/www/public_html/your.domain.com/public/;
index  index.html;
}

}

--
=====================================================================
Documentation : https://astppdoc.atlassian.net/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/56cc5c23-3277-4600-a07d-d346f1a8462a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Gilbert N. Arias Feliz

CEO @ Treblig Web Design & IT Solutions
Unix/Linux Administrator
Windows Server Administrator
VoIP Engineer 
BackTrack Network Security Tester Team

[Unos Sueñan... Otros Hacemos Realidad Nuestros Sueños...]

Ricky

unread,
Nov 3, 2016, 11:33:06 AM11/3/16
to ASTPP
This worked but I still get a content error " Only secure content is displayed" once I log into the dashboard all other pages revert to http://www.domain.com:8089 how do I secure the entire site?  Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

Gilbert Arias

unread,
Nov 3, 2016, 5:26:42 PM11/3/16
to ASTPP
you need to set ssl on the astpp ports like this

server {
  listen 8081 ssl;
  server_name example.com;
  ...... << ssl stuff
  location stuff / {
   
  }
}

To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

For more options, visit https://groups.google.com/d/optout.

Ricky

unread,
Nov 3, 2016, 9:43:08 PM11/3/16
to ASTPP
Still getting an error.   Below is what my astpp.conf file looks like.

server {
            listen 8089 ssl;
            server_name speak.domain.com;
            listen 443;
                         ssl on;
            ssl_certificate  /etc/ssl/speak.domain.com/fullchain.pem
            ssl_certificate_key  /etc/ssl/speak.domain.com/privkey.pem;
      
            root /var/www/html/astpp;
            location / {


I am still getting " Only secure content is displayed " Once I click on show all content then the page renders correctly... any ideas.  Thanks


Gilbert Arias

unread,
Nov 3, 2016, 10:35:22 PM11/3/16
to ASTPP

Have you changed the astpp config file where you set the url ? That needs to be https instead of http


To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

Gilbert Arias

unread,
Nov 3, 2016, 10:46:01 PM11/3/16
to ASTPP

Ricky

unread,
Nov 4, 2016, 10:26:34 AM11/4/16
to ASTPP
Garias,

Thank you very much your steps worked very well, this was excellent.

Gilbert Arias

unread,
Nov 4, 2016, 1:07:33 PM11/4/16
to ASTPP
you are welcome my friend.!

To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages