How to set the SSL keystore on VirtServer?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Shadid,
thanks for the answer. That's what I was looking for.
Regards
Dominik
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Dominik,
Can you paste part of the config where you have virtSSL (without the passwords)?
Regards,
Shadid Chowdhury
SmartBear Sweden
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Shadid,
please find following the config.
# SSL configuration for virts
virtSSL:
virtKeystorePath: .virtserverkeystore
virtKeystorePassword: '<Password>'
virtKeyPassword: '<Password>'
virtTrustStorePath: .virtserverkeystore
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
