8
10

More than 5 years have passed since last update.

ローカル開発時のサーバへのHTTPS接続方法

Last updated at Posted at 2016-07-17

Glassfishの場合


  1. ポート[8181]で接続する。
    【HTTP接続】https://localhost:8080/・・・
    【HTTPS接続】https://localhost:8181/・・・
    


Tomcatの場合


  1. キーストアをTomcatのconfフォルダ内に作成する。
    キーストアのパスワードは[changeit]にする。
    【キーストア格納先フォルダ】%TOMCAT_HOME%\conf
    【キーストア作成コマンド】keytool -genkey -alias tomcat -keyalg RSA -keystore keystore.jks
    

  2. Tomcatのconfフォルダ内のserver.xml内のSSL設定部分(port="8443")のコメントを外す。
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
                   maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
                   clientAuth="false" sslProtocol="TLS" 
                   keystoreFile="C:\develop\eclipse\4.4\pleiades\tomcat\7\conf\keystore.jks"
    />
    

  3. ポート[8443]で接続する。
    【HTTP接続】https://localhost:8080/・・・
    【HTTPS接続】https://localhost:8443/・・・
    


8
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
10