java only visit http to https

table of Contents

Generate keystore files

tomcat server.xml file modification in

Configuring the browser


Generate keystore file:

  1. Enter the command in the bin directory of tomcat: keytool -genkeypair -alias tsing -keyalg RSA -keystore F: \\ tsing.keystore

  2.1 keystore file stored in the F drive, follow the prompts to fill in the information, and remember passwords

Modify tomcat's server.xml file

  

<Connector port="8080" protocol="org.apache.coyote.http11.Http11Protocol"
                SSLEnabled="true"
                maxThreads="150"
                scheme="https"
                secure="true"
                clientAuth="false"
                sslProtocol="TLS"
                keystoreFile="D:\tomcat\tomcat6\tomcat6_JLDD_https\tomcat6_JLDD\tsing.keystore"
                keystorePass="tsing"

Configure the browser:

  1. Configure Firefox:  

Into about: config where the two values changed from true to false 

security.ssl3.dhe_rsa_aes_128_sha to false = 

security.ssl3.dhe_rsa_aes_256_sha to false =

  2. placed IE

Direct access to the address https: 
install the certificate. 
The certificate is installed to the "Trusted Root Certification Authorities" can

 

    

 

  

 

Guess you like

Origin www.cnblogs.com/wqk66/p/10968766.html