Chef Server Backup and restore

I have a chef server and i need to backup and restore to some new cher server.
Steps i followed

  • installed the chef server
  • restore backup from existing chef server backup
    chef-server-ctl restore chef-backup-2017-08-17-17-39-56.tgz
    after install chef-manage, i can successfully restore chef server with user/cookbook and all data

Issue

  • When i try to bootstrap node to new chef server, i get openssl verification error
    I tried knife ssl fetch/check but nothing works.

Found Out that restore had made my old chef server pem and crt file to be in my new chef server.

How can i generate a new crt/pem file for new chef server ?

Please have a look at this documentation for regenerating the SSL certificates for the Chef Server. https://docs.chef.io/server_security.html#regenerate-certificates