liunx http转https

1、http想实现为https 就需要为配置ssl,及其使用的证书。这些在http里有专门的mod_ssl模块来支持。

       执行: yum -y install mod_ssl  #安装mod_ssl模块

安装该模块后,它会自动修改配置文件,增加LoadModule ssl_module modules/mod_ssl.so在httpd的子配置文件/etc/httpd/conf.d/ssl.conf里,同时也打开了443端口,同时指定了证书的存放路径。

2、如果申请证书时有填写私钥密码,下载可获得Tomcat文件夹,其中有密钥库 www.domain.com.jks;
如果没有填写私钥密码,证书下载包的Tomcat文件夹中包括密钥库文件www.domain.com.jks 与密钥库密码文件keystorePass.txt

3、复制证书文件到tomcat/conf下面

4、修改配置文件server.xml

5、修改在web.xml文件中加入下面代码

<login-config>
        <!-- Authorization setting for SSL -->
        <auth-method>CLIENT-CERT</auth-method>
        <realm-name>Client Cert Users-only Area</realm-name>
    </login-config>
    <security-constraint>
    <!-- Authorization setting for SSL -->
        <web-resource-collection>
            <web-resource-name>SSL</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>

6、开启443端口  重启服务即可。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在Linux上配置Miniconda的步骤如下: 1. 首先,下载Miniconda的安装包。可以使用以下命令从清华镜像站点下载Miniconda3的特定版本: ``` wget -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh ``` 2. 下载完成后,给安装包添加执行权限并运行安装脚本: ``` chmod 777 Miniconda3-4.6.14-Linux-x86_64.sh bash Miniconda3-4.6.14-Linux-x86_64.sh ``` 3. 接下来,修改pip源为清华源,使用以下命令: ``` pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple ``` 4. 如果需要设置其他的操作命令,可以执行以下命令进行配置: - 关闭自动进入conda基础环境: ``` conda config --set auto_activate_base false ``` - 开启自动进入conda基础环境: ``` conda config --set auto_activate_base true ``` - 查看帮助信息: ``` conda config -h ``` - 查看全部配置信息: ``` conda config --show ``` 5. 最后,添加清华镜像源,使用以下命令: ``` conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2 conda config --set show_channel_urls yes conda config --show channels ``` 通过以上步骤,您就可以在Linux系统上成功配置Miniconda了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [linux下安装miniconda3,tensorflow-gpu,配置object detection API,tflite模型](https://blog.csdn.net/qq_33682559/article/details/119956103)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [Linux中miniconda的操作](https://blog.csdn.net/m0_73625420/article/details/128313467)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值