servlets - What role does the keystore files play for SSL? -
being , new ssl managed application running using https:
in tomcat server added
<connector port="8443" maxthreads="150" minsparethreads="25" maxsparethreads="75" enablelookups="true" disableuploadtimeout="true" acceptcount="100" debug="0" scheme="https" secure="true" clientauth="false" sslprotocol="tls" keystorefile="c:/keystore.key" keystorepass="mypassword" sslenabled="true" />
and in application added
<user-data-constraint> <transport-guarantee>confidential</transport-guarantee> </user-data-constraint>
now question if delete keystore file c:\ generated using :
keytool -genkey -alias tomcat -keypass pass -keystore keystore.key -storepass pass
my application still runs in https ? difference make if have file or not ? couldnt tell ?
private keys used in authentication phase of ssl handshake, sign certificate provided. peer verifies signature via certificate's public key. proves own certificate, because can sign private key corresponding public key, because have private key, because it's private. part of establishing identity, i.e. authentication.
an ssl client needs private key, certificate, keystore etc., if server needs or wants client authentication.
the server's private key used in initial phase of generating shared secret, in turn used generate session keys session. data encrypted session key.
Comments
Post a Comment