colleagues today asked to help configure Tomcat SSL, directly to the Linux under Tomcat configuration SSL This article sent to him, did not expect him to say when the start Tomcat, reported connector attribute Sslcertificatefile must is defined when using SSL with Apr error, ran to see immediately, originally his Tomcat version is 7.0, I sent him is Tomcat6, checked the key, checked the configuration file, Because he copied directly I send his article configuration, toss over 2-3 hours, finally to solve the problem.
System: Windows 7
Environment: TOMCAT7
1. First give him a new key
Keytool-genkey-alias tomcat-keyalg rsa< /p>
Enter KeyStore Password:password
Re-enter New Password:password
What is your name?
[Unknown]: Loiane groner
What is the name of your organizational?
[Unknown]: Home
What is the name of your organization?
[Unknown]: Home
What is the name of your city or locality?
[Unknown]: Sao Paulo
What is the name of your state or province?
[Unknown]: SP
What is the Two-letter country code for this unit?
[Unknown]: BR
Is Cn=loiane Groner, Ou=home, O=home, L=sao Paulo, st=sp, c=br correct?
[No]: Y
Enter Key Password for
(return if same as KeyStore password): password
Re-enter New Password:password
2.tomcat Configuring SSL
Open Server.xml file, they turned out to be
<connector port= "8443" protocol= "http/1.1" sslenabled= "true" enablelookups= "false"
Acceptcount= "disableuploadtimeout=" "true"
maxthreads= "Scheme=" "https" secure= "true"
Clientauth= "false" sslprotocol= "TLS"
Keystorefile= "Usersloiane/.keystore"
keystorepass= "Password"/>
Modified to:
<connector port= "8443" protocol= "Org.apache.coyote.http11.Http11Protocol" sslenabled= "true"
Enablelookups= "false"
Acceptcount= "disableuploadtimeout=" "true"
maxthreads= "Scheme=" "https" secure= "true"
Clientauth= "false" sslprotocol= "TLS"
Keystorefile= "Usersloiane/.keystore"
keystorepass= "Password"/>
Then restart Tomcat, no error, fix the flash.
Original from: blog.slogra.com/