首页 > 其他分享 >harbor自建https证书生成

harbor自建https证书生成

时间:2023-10-12 16:12:01浏览次数:39  
标签:key 自建 证书 harbor ca 生成 pem https CSR

1.创建根证书

# 生成 RSA 私有秘钥
openssl genrsa -out ca-key.pem 4096
# 生成CSR(Certificate Signing Request),CSR和KEY是匹配的,CSR是最终的证书和私钥配对使用
openssl req -x509 -new -nodes -sha512 -days 3650 -subj "/C=CN/ST=Guangdong/L=Shenzhen/O=example/OU=DCP/CN=registry.test.com" -key ca-key.pem -out ca.pem

标签:key,自建,证书,harbor,ca,生成,pem,https,CSR
From: https://www.cnblogs.com/yuhaohao/p/17759742.html

相关文章

  • tomcat 免费的 .pem 证书 配置https
    获取证书网址:https://certbot.eff.org/下载并安装 https://github.com/certbot/certbot/releases/latest/download/certbot-beta-installer-win_amd64_signed.exe如果服务器使用中,不想关闭执行:certbotcertonly--webroot如果可以关闭执行:certbotcertonly--standalo......
  • springMVC @Test方法中如何请求https
    原文链接:https://www.longkui.site/error/springmvc-test-https/4823/0.背景springMVC环境,需要在@Test方法中发送一个https请求,按照格式要求发送了,结果报错org.springframework.web.client.ResourceAccessException:I/OerroronPOSTrequestfor"https://xxxx/xxx/xx:jav......
  • java.lang.IllegalArgumentException: Expected MultipartHttpServletRequest: is a M
    原文链接:https://www.longkui.site/error/java-lang-illegalargumentexception-expected-multiparthttpservletrequest-is-a-multipartresolver-configured/4837/0.背景JAVA后台一个上传excel的接口,如下:importData(@RequestParam("file")MultipartFilefile)然后,前台按......
  • harbor安装
    1下载离线包wgethttps://ghproxy.com/https://github.com/goharbor/harbor/releases/download/v2.5.0/harbor-offline-installer-v2.5.0.tgz2、解压安装即可tar-xvfharbor-offline-installer-v2.5.0.tgzcpharbor.yml.tmplharbor.yml #复制一份配置vimharbor.yml......
  • HTTP和HTTPS区别
    HTTP(HyperTextTransferProtocol)和HTTPS(HTTPSecure)都是用于在计算机之间传输数据的协议.但是,HTTPS在传输数据时使用了安全套接层(SSL)或者传输层安全(TLS)协议来加密数据,以防止第三方拦截或窃取数据。主要区别如下:1.安全性:HTTPS在传输过程中使用了加密技术,而HTTP......
  • 【Https异常】This request has been blocked; the content must be served over HTTP
    参考:https://www.cnblogs.com/756623607-zhang/p/11790283.html一、问题出现场景项目从http升级到https后,jsp页面存在发送http请求的情况下就会出现该异常。因为HTTPS是HTTPoverSecureSocketLayer,以安全为目标的HTTP通道,所以在HTTPS承载的页面上不允许出现http请求......
  • Unity使用https请求握手失败的处理方案
    Unity使用https请求握手失败的处理方案HandshakefailedUNITYTLS_INTERNALS解决方案varhandler=newHttpClientHandler();//需要加这句handler.ClientCertificateOptions=ClientCertificateOption.Manual;//需要加这句using(HttpCli......
  • shell 实现harbor 指定仓库镜像tags 查询
    1.需求背景1.1容器发布ci成功以后我们希望CD时候可以选择相关镜像1.2统计指定仓库镜像有多少个版本2.shell代码#!/bin/bash#harbor关键环境变量HARBOR_URL=""USERNAME=""PASSWORD=""PAGE_SIZE=50imges_head=$(echo"$HARBOR_URL"|awk-F//'{print$2}')pr......
  • harbor登录时报错error parsing HTTP 404 response body: invalid character
    **harbor登录时报如下错误: **[root@localhostTDFW-publish-tar]#dockerlogin--username=user1192.168.2.10:8090--passworduser1_passWARNING!Using--passwordviatheCLIisinsecure.Use--password-stdin.Errorresponsefromdaemon:Get"http://192.168.2.......
  • c# 最终 https的
          可获取公司https的 publicstaticvoidtest2(Stringurl){           WebClientwc=newWebClient();           wc.Encoding=Encoding.UTF8;           wc.Headers.Add("Accept:text/html,application/xhtml+xml,app......