[SOLVED]after compile and run bnetserver: instance().use_certificate_chain_file("bnetserver.cert.pem", err) failed: No such file or directory

Hi! after compile and run benetserver i get:

Using SSL version: OpenSSL 1.0.1f 6 Jan 2014 (library: OpenSSL 1.0.1f 6 Jan 2014)
Using Boost version: 1.54.0
instance().use_certificate_chain_file(“bnetserver.cert.pem”, err) failed: No such file or directory
Failed to initialize SSL context

I need to create a new cert?

You don’t have wrote what OS you use, but, you need Boost 1.55 minimum on linux, 1.59 on windows and 1.60 on OSX.

You did not copy the required file from build dir.

Or you are trying to run bnetserver from outside bin directory.

i’m using ubuntu 14.04, i’ll try upgrading to boost 1.55

ok, i upgrade to boost 1.55, but now i get :

[src/tools/connection_patcher/CMakeFiles/connection_patcher.dir/all] Error 2

i’m usin g cmake 3.2.2 , gcc 4.8.4

:confused:

I’m sorry now i can make it work, some packages was not automatic upgraded to 1.55 i need to use sudo apt-get install libboost1.55-dev libboost-thread1.55-dev libboost-system1.55-dev libboost-filesystem1.55-dev libboost-program-options1.55-dev libboost-iostreams1.55-dev

— Canned message start —
It appears the issue in the original post was solved, so this thread shall be closed.
Should you encounter any other difficulties, please open a new thread.
— Canned message end —

I am trying to start a Trinity Core Server on a mac and When I open the Bnetserver on the Bin directory, it appears like this…

Using configuration file /Users/alexnoble/Trinity/etc/bnetserver.conf.

Using SSL version: OpenSSL 1.0.2h 3 May 2016 (library: OpenSSL 1.0.2h 3 May 2016)

Using Boost version: 1.61.0

instance().use_certificate_chain_file(certificateChainFile, err) failed: No such file or directory

Failed to initialize SSL context

logout

Saving session…

…copying shared history…

…saving history…truncating history files…

…completed.

[Process completed]

TrinityCore rev. c36f831ab714+ 2017-01-24 00:08:12 +0100 (master branch) (Win64, Release, Static) (bnetserver)
to stop.


/\__  _\       __          __/\ \__
\/_/\ \/ _ __ /\_\    ___ /\_\ \, _\  __  __
   \ \ \/\`'__\/\ \ /' _ `\/\ \ \ \/ /\ \/\ \
    \ \ \ \ \/ \ \ \/\ \/\ \ \ \ \ \_\ \ \_\ \
     \ \_\ \_\  \ \_\ \_\ \_\ \_\ \__\\/`____ \
      \/_/\/_/   \/_/\/_/\/_/\/_/\/__/ `/___/> \
                                 C O R E  /\___/

http://TrinityCore.org /__/

Using configuration file E:/wowsever/bnetserver.conf.
Using SSL version: OpenSSL 1.0.2j 26 Sep 2016 (library: OpenSSL 1.0.2j 26 Sep 2016)
Using Boost version: 1.60.0
instance().use_certificate_chain_file(certificateChainFile, err) failed: No such file or directory
Failed to initialize SSL context

when i run it ,it’s worg

cmake

Boost_DIR Boost_DIR-NOTFOUND

can any one help me ?

it’s ok,

you mast copy the bnetserver.cert.pem

thinks!!