Contributions
Cannot start mock service over https
Hi, I use 4.5.1 version. I tried to start a mock service over https. I created certificates using commands: keytool -genkey -alias server -dname "CN=localhost, OU=X, O=Y, L=Z, S=XY, C=YZ" -keyalg RSA -keypass changeit -storepass changeit -keystore server.jks -storetype jks keytool -export -alias server -storepass changeit -file server.cer -keystore server.jks keytool -genkey -alias client -dname "CN=localhost, OU=X, O=Y, L=Z, S=XY, C=YZ" -keyalg RSA -keypass changeit -storepass changeit -keystore client.jks -storetype jks keytool -export -alias client -storepass changeit -file client.cer -keystore client.jks keytool -import -v -file server.cer -keystore client.jks -keypass changeit -storepass changeit keytool -import -v -file client.cer -keystore server.jks -keypass changeit -storepass changeit I configured SSL settings like on attached screenshot. I created project. You can find it in attachments. Then I started mock service. When I submit the request to https://localhost:8443/mockIAccountInfo endpoint I have an error and following log Wed Sep 26 11:43:07 EEST 2012:ERROR:Exception in request: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? Wed Sep 26 11:43:07 EEST 2012:ERROR:An error occured [Unrecognized SSL message, plaintext connection?], see error log for details Wed Sep 26 11:43:07 EEST 2012:INFO:Error getting response for [IAccountInfo.getAvailableDataSources:Request 1]; javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? When I submit the request to http://localhost:8443/mockIAccountInfo endpoint I get response and the log Wed Sep 26 11:44:21 EEST 2012:INFO:Got response for [IAccountInfo.getAvailableDataSources:Request 1] in 21ms (95 bytes) Does it mean that mock service uses http instead of https? How can I start it over https? Thank you. Oleg.12 years agoPlace ReadyAPI QuestionsReadyAPI Questions4KViews0likes3Comments