• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Change Server but not change certificate

Scheduled Pinned Locked Moved
FOG Problems
4
18
5.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Sebastian Roth Moderator
    last edited by Mar 21, 2016, 7:32 PM

    @danilopinotti Please let us know which error you see in /var/log/apache2/error.log (Debian/Ubuntu) or /var/log/httpd/error_log (CentOS/Fedora/RHEL)…

    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

    D 1 Reply Last reply Mar 21, 2016, 8:01 PM Reply Quote 0
    • D
      danilopinotti @Sebastian Roth
      last edited by Mar 21, 2016, 8:01 PM

      @Sebastian-Roth

      [Mon Mar 21 16:59:14.067146 2016] [ssl:emerg] [pid 19633] AH02565: Certificate and private key 172.20.1.251:443:0 from /var/www/fog/management/other/ssl/srvpublic.crt and /opt/fog/snapins/ssl/.srvprivate.key do not match
      AH00016: Configuration Failed
      

      Att, Danilo Pinotti

      Fog 1.3.0-RC-7
      Ubuntu Server 14.04 LTS

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth Mar 21, 2016, 2:17 PM Mar 21, 2016, 8:14 PM

        @danilopinotti Please run the following commands:

        openssl rsa -modulus -noout -in /opt/fog/snapins/ssl/.srvprivate.key | openssl md5
        openssl x509 -modulus -noout -in /var/www/fog/management/other/ssl/srvpublic.crt | openssl md5
        

        The MD5 sums should match!

        Did you copy /opt/fog from the old to the new server and then ran the installer on the new server?

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        D 1 Reply Last reply Mar 21, 2016, 8:26 PM Reply Quote 0
        • D
          danilopinotti @Sebastian Roth
          last edited by Mar 21, 2016, 8:26 PM

          @Sebastian-Roth
          Not match!
          I tried copy the fog.csr to new and run the script again. Not works too

          Att, Danilo Pinotti

          Fog 1.3.0-RC-7
          Ubuntu Server 14.04 LTS

          1 Reply Last reply Reply Quote 0
          • J
            Joe Schmitt Senior Developer
            last edited by Joe Schmitt Mar 21, 2016, 2:45 PM Mar 21, 2016, 8:45 PM

            If you copied over the root CA keys (it sounds like you did), run ./installfog.sh --recreate-keys

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            D 2 Replies Last reply Mar 21, 2016, 8:49 PM Reply Quote 0
            • D
              danilopinotti @Joe Schmitt
              last edited by Mar 21, 2016, 8:49 PM

              @Jbob
              I’ve copied only /opt/fog/snapins/ssl/fog.csr of old to new and re-executed the script.
              It has something else to copy or some other procedure to work ?

              Att, Danilo Pinotti

              Fog 1.3.0-RC-7
              Ubuntu Server 14.04 LTS

              T 1 Reply Last reply Mar 21, 2016, 8:51 PM Reply Quote 0
              • T
                Tom Elliott @danilopinotti
                last edited by Mar 21, 2016, 8:51 PM

                @danilopinotti You need to copy the whole of the SSL folder.

                If /opt/fog/snapins/ssl contains .srvprivate.key and the CA folder and fog.csr, why not just copy the WHOLE folder?

                For example:

                scp -r /opt/fog/snapins/ssl/* fog-server:/opt/fog/snapins/ssl/

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                D 1 Reply Last reply Mar 21, 2016, 9:06 PM Reply Quote 1
                • D
                  danilopinotti @Tom Elliott
                  last edited by Mar 21, 2016, 9:06 PM

                  @Tom-Elliott not works!
                  The same error appears:

                  [Mon Mar 21 18:05:51.390582 2016] [ssl:emerg] [pid 27939] AH02565: Certificate and private key 172.20.1.251:443:0 from /var/www/fog/management/other/ssl/srvpublic.crt and /opt/fog/snapins/ssl/.srvprivate.key do not match
                  AH00016: Configuration Failed
                  

                  Att, Danilo Pinotti

                  Fog 1.3.0-RC-7
                  Ubuntu Server 14.04 LTS

                  T 1 Reply Last reply Mar 21, 2016, 9:08 PM Reply Quote 0
                  • T
                    Tom Elliott @danilopinotti
                    last edited by Mar 21, 2016, 9:08 PM

                    @danilopinotti So your main server is also having issues?

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    D 1 Reply Last reply Mar 21, 2016, 9:09 PM Reply Quote 0
                    • D
                      danilopinotti @Tom Elliott
                      last edited by Mar 21, 2016, 9:09 PM

                      @Tom-Elliott said:

                      So your main server is also having issues?

                      My old server works perfectly.

                      Att, Danilo Pinotti

                      Fog 1.3.0-RC-7
                      Ubuntu Server 14.04 LTS

                      T 1 Reply Last reply Mar 21, 2016, 9:11 PM Reply Quote 0
                      • T
                        Tom Elliott @danilopinotti
                        last edited by Mar 21, 2016, 9:11 PM

                        @danilopinotti After copying the files are you re-running the installer on the place you copied it to?

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        1 Reply Last reply Reply Quote 0
                        • D
                          danilopinotti @Joe Schmitt
                          last edited by danilopinotti Mar 21, 2016, 3:13 PM Mar 21, 2016, 9:13 PM

                          @Jbob said:

                          If you copied over the root CA keys (it sounds like you did), run ./installfog.sh --recreate-keys

                          With this argument it will take advantage of the old scripts or create new keys?

                          Att, Danilo Pinotti

                          Fog 1.3.0-RC-7
                          Ubuntu Server 14.04 LTS

                          T 1 Reply Last reply Mar 21, 2016, 9:24 PM Reply Quote 0
                          • T
                            Tom Elliott @danilopinotti
                            last edited by Mar 21, 2016, 9:24 PM

                            @danilopinotti It will use the old CA to generate a new Private key.

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            D 1 Reply Last reply Mar 21, 2016, 9:27 PM Reply Quote 0
                            • D
                              danilopinotti @Tom Elliott
                              last edited by Mar 21, 2016, 9:27 PM

                              @Tom-Elliott said:

                              It will use the old CA to generate a new Private key.

                              In that case I’ll have to reinstall the client on all computers again?

                              Att, Danilo Pinotti

                              Fog 1.3.0-RC-7
                              Ubuntu Server 14.04 LTS

                              T 1 Reply Last reply Mar 21, 2016, 9:29 PM Reply Quote 0
                              • T
                                Tom Elliott @danilopinotti
                                last edited by Mar 21, 2016, 9:29 PM

                                @danilopinotti No. The ca.cert.der and ca.cert.pem files should be identical to what your clients already have.

                                The clients will need to reget the srvpublic.crt file (which they’ll do automatically anyway). This is checked very pass where the encryption key is no longer valid and on initial authentication.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                D 1 Reply Last reply Mar 21, 2016, 9:33 PM Reply Quote 0
                                • D
                                  danilopinotti @Tom Elliott
                                  last edited by Mar 21, 2016, 9:33 PM

                                  @Tom-Elliott
                                  So I will not have to redo the settings in clients?

                                  Att, Danilo Pinotti

                                  Fog 1.3.0-RC-7
                                  Ubuntu Server 14.04 LTS

                                  T 1 Reply Last reply Mar 21, 2016, 9:34 PM Reply Quote 0
                                  • T
                                    Tom Elliott @danilopinotti
                                    last edited by Mar 21, 2016, 9:34 PM

                                    @danilopinotti Correct.

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    1 / 1
                                    • First post
                                      11/18
                                      Last post

                                    197

                                    Online

                                    12.1k

                                    Users

                                    17.3k

                                    Topics

                                    155.3k

                                    Posts
                                    Copyright © 2012-2024 FOG Project