I tried without alias imported certificate,But still not getting working.
Steps :
* I created the certificate in Keychain as said by Osirix and Enabled TLS in Osirix.
* TLS connection works fine between Osirix.
* Exported the certificate from keychain as Certificates.p12 .
* Imported the certificate into trust.jsk which is already avilable as u said without alias.
keytool -importkeystore -srckeystore Certificates.p12 -srcstoretype PKCS12 -destkeystore server/default/conf/certificates/trust.jks
* I used Certificates.p12 as keystore ,trust.jks as truststore with -keystorepw and -truststorepw secret which i used while creating certificate in keychain and importing certificate to trust.jsk .
* finally i executed DCMECHO
./dcmecho OxirixPacs@192.168.1.188:1113 -acceptTO 60000 -tls 3DES -truststore resource:tls/trust.jks -keystore resource:tls/Certificates.p12 -truststorepw secret -keystorepw secret
Error :
Initialize TLS context in 0.202s
13:38:51,102 INFO - Association(1) initiated 12940b3[SSL_NULL_WITH_NULL_NULL: Socket[addr=/192.168.1.188,port=1113,localport=45168]]
13:38:51,104 INFO - OxirixPacs(1): A-ASSOCIATE-RQ OxirixPacs << DCMECHO
13:39:51,345 INFO - OxirixPacs(1): close 12940b3[SSL_NULL_WITH_NULL_NULL: Socket[addr=OxirixPacs-mac.local/192.168.1.188,port=1113,localport=45168]]
ERROR: Failed to establish association:Read timed out
* I was able to echo Osirix without TLS.
* TLS works fine between DCM4CHEE.
- What i am doing wrong?