日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Ambari实现HTTPS登陆

發布時間:2025/3/15 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Ambari实现HTTPS登陆 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

關于Ambari的安全、訪問控制在這里有非常詳細的介紹。

http://pivotalhd.docs.pivotal.io/docs/security-guide-ambari-2.1.2.html

另外還可以參考這一篇

https://community.hortonworks.com/articles/39865/enabling-https-for-ambariserver-and-troubleshootin.html

Ambari用來管理大數據集群非常的方便,但是默認只支持HTTP協議,需要手動安裝、配置才能支持HTTPS協議。
步驟如下:
1、登陸到Ambari Server所在主機,依次執行如下命令

1) openssl genrsa -out $wserver.key 2048 2) openssl req -new -key $wserver.key -out $wserver.csr 3) openssl x509 -req -days 365 -in $wserver.csr -signkey $wserver.key -out $wserver.crt注:$wserver 就是Ambari Server 的host nameThe certificate you use must be PEM-encoded, not DER-encoded. If you attempt to use a DER-encoded certificate, you see the following error:unable to load certificate 140109766494024:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c :698:Expecting: TRUSTED CERTIFICATEYou can convert a DER-encoded certificate to a PEM-encoded certificate using the following command:openssl x509 -in cert.crt -inform der -outform pem -out cert.pemwhere cert.crt is the DER-encoded certificate and cert.pem is the resulting PEM-encoded certificate.2、執行 ambari-server setup-security命令Select 1 for Enable HTTPS for Ambari server.Respond y to Do you want to configure HTTPS ?Select the port you want to use for SSL. The default port number is 8443.Provide the complete path to your certificate file ($wserver.crt from above) and private key file ($wserver.key from above).Provide the password for the private key.Start or restart the Serverambari-server restart

總結

以上是生活随笔為你收集整理的Ambari实现HTTPS登陆的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。