Using a private certificate means that the system owner wants to use their own certificate instead of BioStar 2 certificate for HTTPS communication. Therefore, it’s necessary for the system owner to manage and refresh a certificate manually following the instructions below: 


For BioStar 2.6 and above

Because of changes in the software in BioStar 2.6 the java key store has to be created to be used with the Spring WebServer.


1. Run command prompt with administrator privilege.

2. Create a p12 with a private certificate's crt and key file with the command below: 

openssl pkcs12 -export -in mycert.crt -inkey mycert.key -out biostar_cert.p12 -name "biostar"

Note: Openssl is installed with BioStar 2 and it is in the following directory: C:\Program Files\BioStar 2(x64)\ta\OpenSSL-Win32\bin 


3. Copy the created p12 file to C:\Program Files\BioStar 2(x64)\nginx\conf

4. Stop Core Web Server and BioStar 2 service in BioStar Setting

5. Open C:\Program Files\BioStar 2(x64)

6. Backup system.conf and setting.conf file.

7. Run command prompt with administrator privilege.

8. type cd "C:\Program Files\BioStar 2(x64)"

9. run below command 

java -cp "C:\Program Files\BioStar 2(x64)\util";"C:\Program Files\BioStar 2(x64)\util\lib\google-collect-1.0.jar";"C:\Program Files\BioStar 2(x64)\util\lib\gson-2.8.2.jar" BioStarSetup "C:\Program Files\BioStar 2(x64)"


10. Restore the system.conf and setting.conf file to C:/Program Files/BioStar 2(x64)

11. Start the Core Web Server and BioStar 2 service in BioStar Setting



For BioStar 2.5 and below 

Please refer to the attached PDF.