安裝Portal for ArcGIS時如何正確配置HTTPS認證

來源:互聯網
上載者:User

標籤:

SSL協議位於TCP/IP協議與各種應用程式層協議之間,為資料通訊提供安全支援。SSL協議可分為兩層: SSL記錄協議(SSL Record Protocol):它建立在可靠的傳輸協議(如TCP)之上,為高層協議提供資料封裝、壓縮、加密等準系統的支援。 SSL握手協議(SSL Handshake Protocol):它建立在SSL記錄協議之上,用於在實際的資料轉送開始前,通訊雙方進行身份認證、協商密碼編譯演算法、交換加密金鑰等。

它提供了以下服務:

1)認證使用者和伺服器,確保資料發送到正確的客戶機和伺服器;

2)加密資料以防止資料中途被竊取;

3)維護資料的完整性,確保資料在傳輸過程中不被改變。

 

在配置Portal for ArcGIS時候,由於需要用到HTTPS進行訪問以及和ArcGIS Server進行通訊,所以需要用到SSL。

OpenSSL 是一個強大的安全通訊端層密碼庫,囊括主要的密碼演算法、常用的密鑰和認證封裝管理功能及SSL協議,並提供豐富的應用程式

 

供測試或其它目的使用。OpenSSL整個軟體包大概可以分成三個主要的功能部分:密碼演算法庫、SSL協議庫以及應用程式。

以下為使用OpenSSL對SSL的常規配置流程。

 

1.產生金鑰組

openssl genrsa -des3 -out myServer.key 2048

 

2.產生認證簽章要求。

openssl req -new -key myServer.key -out myServer.csr  -subj

 

"/C=CN/ST=Guangdong/L=Guangzhou/O=Esri/OU=IT/CN=www.seanpc.com"

 

注意:CN為伺服器網域名稱名稱。

 

3.簽署憑證

openssl req -x509 -sha256 -days 3650 -key myServer.key -in myServer.csr -out myServer.crt

 

4.測試認證。

openssl x509 -noout -text -in myServer.crt

 

6.匯出PKCS標準的認證。該格式認證可以被匯入到IIS中。

openssl pkcs12 -export -inkey myServer.key -in myServer.crt -name “www.seanpc.com” -out myServer.pfx

 

7.匯入到tomcat或IIS伺服器中以啟動Https。

#對於IIS伺服器,雙擊myServer.pfx啟動匯入嚮導。

 

#對於tomcat伺服器,修改server.xml設定檔如下。

##使用JSSE實現:

 

 1 <!-- Define a HTTP/1.1 Connector on port 8443, JSSE NIO implementation --> 2  3 <Connector protocol="org.apache.coyote.http11.Http11NioProtocol" 4  5            port="8443" .../> 6  7   8  9 <!-- Define a HTTP/1.1 Connector on port 8443, JSSE BIO implementation -->10 11 <Connector protocol="org.apache.coyote.http11.Http11Protocol"12 13            port="8443" .../>

 

 

1 <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->2 <Connector3            protocol="org.apache.coyote.http11.Http11NioProtocol"4            port="8443" maxThreads="200"5            scheme="https" secure="true" SSLEnabled="true"6            keystoreFile="${user.home}/.keystore" keystorePass="changeit"7            clientAuth="false" sslProtocol="TLS"/>

 

 

 

##使用APR OpenSSL引擎實現:

 

1 <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />2  3 4 <!-- Define a HTTP/1.1 Connector on port 8443, APR implementation -->5 <Connector protocol="org.apache.coyote.http11.Http11AprProtocol"6            port="8443" .../>

 

 

1 <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->2 <Connector3            protocol="org.apache.coyote.http11.Http11Protocol"4            port="8443" maxThreads="200"5            scheme="https" secure="true" SSLEnabled="true" ciphers="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA"  clientAuth="false" sslProtocol="TLS" sslEnabledProtocols="TLSv1.2,TLSv1.1,TLSv1"6  keystoreType="PKCS12" keystoreFile="C:\apache-tomcat-7.0.47\myServer.pfx" keystorePass="esrichina"/>

 

 

安裝Portal for ArcGIS時如何正確配置HTTPS認證

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.