Ask a Question

How to set the SSL keystore on VirtServer?

SOLVED
Dominik
Occasional Contributor

How to set the SSL keystore on VirtServer?

Hi all,

 

I configure Virts on Windows using R!A. I deploy the Virt on the VirtServer running on Linux. The Virts receive request over https.

I managed to set the keystore on my local Virt. But after deploying it on the VirtServer the keystore won't be found. How can I define different keystore locations for local and remote Virts?

 

Thanks

Dominik

7 REPLIES 7
Shadid
Staff

Hi,

 

You need to create or copy the keystore to the Linux system where you are running the VirtServer. Then you need to update the VirtServer configuration file (<installation-dir>/bin/virt-server.yml). In the config file you need to un-comment the virtSSL section and update the keystore information according to your setting. 

 

# SSL configuration for virts
#virtSSL:
    #virtKeystorePath: /path/.keystore  
    #virtKeystorePassword: keystoreSecret
    #virtKeyPassword: keySecret
    #virtTrustStorePath: /path/.keystore
    #virtTrustStorePassword: trustStoreSecret

 

Here you can find more details about VirtServer configuration http://readyapi.smartbear.com/virtserver/reference/settings.

 

Regards,

Shadid Chowdhury

SmartBear Sweden

Dominik
Occasional Contributor

Dear Shadid,

 

thanks for the answer. That's what I was looking for.

 

 

Regards

Dominik

Dominik
Occasional Contributor

Dear Shadid,

 

I've Setup the config file as you suggested. However running the Virt on the remote Server Fails with error:

 

Unable to start Virt REST Virt 1: {"error":"com.smartbear.servicev.core.model.SvpException: keystore for ssl is not configured"}

 

Do you have any idea? I've already double checked the keytore's location and Password

 

Regards

Dominik

Dear Dominik,

 

Can you paste part of the config where you have virtSSL (without the passwords)?

 

Regards,

Shadid Chowdhury

SmartBear Sweden

Dominik
Occasional Contributor

Hi Shadid,

 

please find following the config.

 

  # SSL configuration for virts
  virtSSL:
    virtKeystorePath: .virtserverkeystore
    virtKeystorePassword: '<Password>'
    virtKeyPassword: '<Password>'
    virtTrustStorePath: .virtserverkeystore

Hi Dominik,

 

The config looks okay.

 

Just to double check have you restarted your virtServer after changing the configuration? If you have restarted the server and still it did not pick the config let us know the  which version of virtServer are you running, we can try to reproduce the issue here.

 

Regards,

Shadid Chowdhury

SmartBear Sweden.

Dominik
Occasional Contributor

Dear Shadid,

 

after restarting the server the configured keystore was used. So you can regard the case as solved. Thanks again for your help.

 

 

Regards

Dominik

 

 

cancel
Showing results for 
Search instead for 
Did you mean: