Tomcat ssl报错Connector attribute SSLCertificateFile must be defined when using SSL with APR解决方法
今天同事要求帮忙配置tomcatssl,直接把linux下tomcat配置ssl这篇文章发给他了,没想到他居然说启动tomcat的时候,报ConnectorattributeSSLCertificateFilemustbedefinedwhenusingSSLwithAPR的错误,马上跑过去看,原来他的tomcat版本是7.0的,我发给他的是tomcat6的,检查了key,检查了配置文件,因为他直接复制的我发他文章的配置,折腾了2-3个小时,终于把问题给解决了.
系统:windows7
环境:tomcat7
1.先重新给他生成key
keytool-genkey-aliastomcat-keyalgRSA
Enterkeystorepassword: password Re-enternewpassword:password Whatisyourfirstandlastname? [Unknown]: LoianeGroner Whatisthenameofyourorganizationalunit? [Unknown]: home Whatisthenameofyourorganization? [Unknown]: home WhatisthenameofyourCityorLocality? [Unknown]: SaoPaulo WhatisthenameofyourStateorProvince? [Unknown]: SP Whatisthetwo-lettercountrycodeforthisunit? [Unknown]: BR IsCN=LoianeGroner,OU=home,O=home,L=SaoPaulo,ST=SP,C=BRcorrect? [no]: y Enterkeypasswordfor (RETURNifsameaskeystorepassword): password Re-enternewpassword:password