Yerel bir uygulama için setting up SSL in Tomcat 7 talimatlarını takip etmeye çalışıyorum. Burada ne yaptığımı anlamıyorum, bu yüzden lütfen benim yaklaşımımın nezaketini affedin. Ben böylece, bir anahtar deposunu oluşturmak:SSL in Tomcat 7
keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password: changeit
Re-enter new password: changeit
What is your first and last name?
[Unknown]: Robert Bram
What is the name of your organizational unit?
[Unknown]: Developers
What is the name of your organization?
[Unknown]: MyBusiness
What is the name of your City or Locality?
[Unknown]: Melbourne
What is the name of your State or Province?
[Unknown]: Victoria
What is the two-letter country code for this unit?
[Unknown]: AU
Is CN=Robert Bram, OU=Developers, O=MyBusiness, L=Melbourne, ST=Victoria, C=AU correct?
[no]: yes
Enter key password for <tomcat>
(RETURN if same as keystore password):
o zaman benim server.xml bir Bağlayıcı portu ekledi: Ben Tomcat yeniden
keytool -export -alias tomcat -file tomcatcertfile.cer
Enter keystore password: changeit
Certificate stored in file <tomcatcertfile.cer>
: Ben sertifikanızı daha
<Connector port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="${user.home}/.keystore" keystorePass="changeit"
clientAuth="false" sslProtocol="TLS"/>
. Uygulamamı IE'de
https://localhost:8443/blah/myapp yüklüyorum. Bir sertifika hatası gösterir.
Adres çubuğunda "Sertifika Hatası" seçeneğini tıklıyorum> Sertifikaları Görüntüle> Sertifikayı Yükle> İleri> Tüm sertifikaları aşağıdaki mağazaya yerleştir'i işaretleyin> Gözat'ı tıklatın> Güvenilen Kök Sertifika Yetkilileri'ni tıklatın> İleri> Son> Evet'i tıklatın > Tamam> Tamam.
Şimdi sayfaya gittiğimde "Bu web sitesi tarafından sunulan güvenlik sertifikası farklı bir web sitesinin adresi için yayınlandı" konusunu görüyorum.
Öyleyse tam olarak ne yapıyorum?
Önerileriniz için teşekkürler!
Rob :)
Teşekkür ederim - öyleydi. :) –
Bir sorun var .. Eğer sertifikayı önce kurarsam, asla işe yaramaz. Sadece IE'ye gidersem, hatayı görür ve sonra sertifikayı yüklerseniz çalışır. Neden? –
Bunu yazdım: [Tomcat üzerinde localhost için çalışmak için HTTPS alın] (http://robertmarkbramprogrammer.blogspot.com/2011/09/get-https-to-work-for-localhost-on.html). –