Send netdisco-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Netdisco and https / Centos 6/7 solution (Miha Kralj)
   2. Re: Netdisco and https / Centos 6/7 solution (Oliver Gorwits)
--- Begin Message ---
Hi,

I just want to share how easy is to configure https on Centos 6 or 7.
As a starting point I was following this page:
https://metacpan.org/pod/release/OLIVER/App-Netdisco-2.012002/lib/App/Netdisco/Manual/Deployment.pod
I don't like it, because I didn't manage to get working sollution with
following this instructions.

But the solution is far more simple.
You don't need to modify anything in NetDisco config files.
This is all you need to do:

yum install httpd mod_ssl
mkdir /etc/httpd/ssl
cd /etc/httpd/ssl
openssl req -x509 -newkey rsa:4096 -nodes -keyout ./key.pem -out ./cert.pem
-days 20000
chmod -R 400 /etc/httpd/ssl
vim /etc/httpd/conf.d/netdisco.conf

Listen 5443
  <VirtualHost *:5443>
      SSLEngine on
      SSLCertificateFile /etc/httpd/ssl/cert.pem
      SSLCertificateKeyFile /etc/httpd/ssl/key.pem
      ProxyPass / http://localhost:5000/
      ProxyPassReverse / http://localhost:5000/
      ServerName NetDisco
  </VirtualHost>


service httpd restart

Open port on firewall (Centos7):
firewall-cmd --permanent --zone=internal --add-rich-rule='rule
family="ipv4" port port="5443" protocol="tcp" accept'
firewall-cmd --reload

Access to web:
     https://NetDisco:5443

--- End Message ---
--- Begin Message ---
thank you Miha, that is really appreciated!

We'll update the docs with this information...

On Mon, 30 Sep 2019 at 14:32, Miha Kralj <[email protected]> wrote:

> Hi,
>
> I just want to share how easy is to configure https on Centos 6 or 7.
> As a starting point I was following this page:
>
> https://metacpan.org/pod/release/OLIVER/App-Netdisco-2.012002/lib/App/Netdisco/Manual/Deployment.pod
> I don't like it, because I didn't manage to get working sollution with
> following this instructions.
>
> But the solution is far more simple.
> You don't need to modify anything in NetDisco config files.
> This is all you need to do:
>
> yum install httpd mod_ssl
> mkdir /etc/httpd/ssl
> cd /etc/httpd/ssl
> openssl req -x509 -newkey rsa:4096 -nodes -keyout ./key.pem -out
> ./cert.pem -days 20000
> chmod -R 400 /etc/httpd/ssl
> vim /etc/httpd/conf.d/netdisco.conf
>
> Listen 5443
>   <VirtualHost *:5443>
>       SSLEngine on
>       SSLCertificateFile /etc/httpd/ssl/cert.pem
>       SSLCertificateKeyFile /etc/httpd/ssl/key.pem
>       ProxyPass / http://localhost:5000/
>       ProxyPassReverse / http://localhost:5000/
>       ServerName NetDisco
>   </VirtualHost>
>
>
> service httpd restart
>
> Open port on firewall (Centos7):
> firewall-cmd --permanent --zone=internal --add-rich-rule='rule
> family="ipv4" port port="5443" protocol="tcp" accept'
> firewall-cmd --reload
>
> Access to web:
>      https://NetDisco:5443
>
>
>
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to