当前位置: 首页 > news >正文

刘强东最开始在哪个平台做网站哪个网站可以做高像素动图

刘强东最开始在哪个平台做网站,哪个网站可以做高像素动图,杭州手机建站模板,网页版梦幻西游36天罡攻略SringBoot 如何使用HTTPS请求及Nginx配置Https SringBoot 如何使用HTTPS请求生成证书导入证书及配制创建配置类将pfx转成.key和.pem Nginx 安装SSL依赖./configure 安装依赖编译安装完openssl后报了新错 Nginx配置 SringBoot 如何使用HTTPS请求 生成证书 由于业务数据在传输过… SringBoot 如何使用HTTPS请求及Nginx配置Https SringBoot 如何使用HTTPS请求生成证书导入证书及配制创建配置类将pfx转成.key和.pem Nginx 安装SSL依赖./configure 安装依赖编译安装完openssl后报了新错 Nginx配置 SringBoot 如何使用HTTPS请求 生成证书 由于业务数据在传输过程中需要保密我们组小同学写了一个HTTPS接口。该接口用到的证书是通过JDK自带的证书生成工具keytool使用keytool来生成证书。打开终端或者命令行输入命令回车,然后输入信息,其中秘钥库口令和秘要口令最好输入同一个,并且记下这个口令。 //keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650 keytool -genkey -alias kshttps -keyalg RSA -keysize 2048 -validity 36524 -keystore kshttps.jks keytool -importkeystore -srckeystore kshttps.jks -destkeystore kshttps.pkcs12 -deststoretype pkcs12 openssl pkcs12 -nodes -in kshttps.pkcs12 -out kshttps.pem openssl pkcs12 -nocerts -nodes -in kshttps.pkcs12 -out kshttps.keykey -genkey 生成-alias 别名-storetype 指定密钥库的类型eg:JKS 、PKCS12通常以.p12或.pfx两种文件形式出现、PKCS11、BCFKS、DKS、Windows-MY、Windows-ROOT、PEM不能直接用Keytool导出但可用OpenSSL工具一起使用-keyalg RSA 代表算法.RSA是非对称加密-keysize 密钥长度-keystore 生成路径文件名-validity有效期 导入证书及配制 证书生成完成后可以导入到到项目中将其复制到Springboot项目的resources目录下 配置yml配置文件即可 server:port: 8080ssl:#开启httpsenabled: true#指定存放证书的密钥库文件的位置key-store: classpath:springboot.keystore#密钥库文件的格式key-store-type: PKCS12#别名需要与创建密钥库时的别名一致key-alias: springboot-httpskey-password: 123456 key-store-password: 123456 http:port: 8090创建配置类 Configuration public class HttpsConfig {Value(${http.port})private Integer httpPort;Beanpublic ServletWebServerFactory servletContainer() {Connector connector new Connector(TomcatServletWebServerFactory.DEFAULT_PROTOCOL);connector.setPort(httpPort);final TomcatServletWebServerFactory tomcat new TomcatServletWebServerFactory();tomcat.addAdditionalTomcatConnectors(connector);return tomcat;} } 将pfx转成.key和.pem 为什么转呢因为Nginx的配置中是要求一个.key和.pem格式的其他可否我没有验证。大家可以自己查询。但我是直接转成两后缀的文件了。转换工具可能过openssl转参考命令如下所示 openssl pkcs12 -in keystore.pfx -out cert.key -nocerts openssl pkcs12 -in keystore.pfx -out cert.pem -nodes 其他转换当了解了也附在本文中,不想学习的可跳过这部分 1pem转换pfxopenssl pkcs12 -export -in test.pem -inkey test.key -out test.p12 -passout pass:1234562pem转换jksopenssl pkcs12 -export -in test.pem -inkey test.key -out test.p12 -passout pass:123456keytool -importkeystore -srckeystore test.p12 -srcstoretype PKCS12 -destkeystore test.jks -srcstorepass 123456 -deststorepass 1234563pfx转换pemopenssl pkcs12 -in test.p12 -passin pass:123456 -out test3.pem -nodes4pfx转换jkskeytool -importkeystore -srckeystore test.p12 -srcstoretype PKCS12 -destkeystore test.jks -srcstorepass 123456 -deststorepass 1234565jks转换pemkeytool -importkeystore -srckeystore test.jks -srcstoretype jks -destkeystore test.p12 -deststoretype PKCS12 -srcstorepass 123456 -deststorepass 123456openssl pkcs12 -in test.p12 -passin pass:123456 -out test3.pem -nodes6jks转化pfxkeytool -importkeystore -srckeystore test.jks -srcstoretype jks -destkeystore test.p12 -deststoretype PKCS12 -srcstorepass 123456 -deststorepass 123456Nginx 安装SSL依赖 Nginx配置HTTPS需要先安装依赖。否用支报如下错误 如上所示我们可以执行以下命令解决 ./configure 安装依赖 ./configure --prefix/usr/local/nginx --usernginx --groupnginx --with-http_ssl_module 如果报以下错误提示请顺序读完如果不报请跳至下一章节 You can either do not enable the modules, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source with nginx by using --with-opensslpath option.解决这个问题首先需要检查是否安装了OpenSSL通过openssl version查看,未安装可以参考以下命令进行安装 yum -y install openssl openssl-devel如果确定已安装可找下安装位置。使用which openssl 命令。但需要注意通过此命令如果找到的是安装后的命令则无效仍不好使需要找到安装源路径如无法找到可以通过https://www.openssl.org/source/ 下载进行安装。安装成功后重新执行以下命令和make  install。 出现了新错误莫慌请看下去 ./configure --with-openssl/usr/openssl --prefix/usr/local/nginx --usernginx --groupnginx --with-http_ssl_module find / -name ssl.h编译 make make install安装完openssl后报了新错 到这步后需要修改下Nginx源路径下的 auto/lib/openssl/conf vi auto/lib/openssl/conf 修改内容如下所示 Nginx配置 server {listen 443 ssl;server_name 127.0.0.1;ssl_certificate cert.pem;ssl_certificate_key cert.key;ssl_session_cache shared:SSL:1m;ssl_session_timeout 5m;# ssl_ciphers HIGH:!aNULL:!MD5;# ssl_prefer_server_ciphers on;location /wscc-interface {# root html;# index index.html index.htm;proxy_pass http://127.0.0.1:443/;}}
http://www.hkea.cn/news/14404372/

相关文章:

  • 网站建设与运营 就业嘉瑞建设有限公司网站
  • 衡阳网站设计小程序推广收费价目表
  • 网站权重如何提高咖啡的网站建设策划书
  • 网上购物网站开发单位网站建设意见
  • 手机网站内容管理系统京东网站的建设与发展
  • tiktok跨境电商大连网站优化步骤
  • 我的网站没备案怎么做淘宝客推广网页设计分为几个部分
  • 有一个网站自己做链接获取朋友位置中国建设教育网证件查询
  • 建设部网站 防火规范北京装修公司哪家口碑好一些
  • 网站建设用什重庆百度推广
  • 国内做服装的网站有哪些网页游戏单机
  • 长春网站建设首选网诚传媒_网站建设 竞赛 方案
  • 有服务器怎么做网站上海企业网站建设公司
  • 广州手机网站设计一份完整的营销策划方案
  • 网站的大图传不上去是怎么回事wordpress 主题 微信
  • 网站没备案可以访问吗怎么建设电子商城网站
  • 自己怎么做淘宝客网站吗谷歌浏览器中文手机版
  • 文山网站建设联系电话做一个主题的网页代码
  • 微信企业官方网站怎么做做网站如何赚钱知乎
  • 做的好的电商网站项目口碑营销案例简短
  • 汽车技术资料网站建设谷歌浏览器下载手机版最新版
  • 知名企业网站分析 比较评估网站的建设进入哪个科目
  • 南京网站建设制作移动官网网站建设
  • 网站开发管理课程设计说明天晴创艺网站建设百度小程序
  • 在大学做网站十堰seo优化方法
  • 网站权限设计南京网站制作学校
  • 织梦企业网站管理系统qq浏览器小程序
  • 北京app制作多少钱wordpress 百度优化
  • 网站推广平台怎么做网站从建设到上线流程
  • 遵义官网网站建设自己做培训网站