go-fastdfs/ca.html
junqiang.zhang 8cd922ff62 qa
2021-11-06 22:32:47 +08:00

691 lines
18 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>https证书生成 · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="gitbook/style.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="authentication.html" />
<link rel="prev" href="install.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="./">
<a href="./#vision">
愿景
</a>
</li>
<li class="chapter " data-level="1.2" data-path="./">
<a href="./#background">
背景
</a>
<ul class="articles">
<li class="chapter " data-level="1.2.1" data-path="./">
<a href="./#what">
go-fastdfs是什么
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3" data-path="./">
<a href="./#character">
特性
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1" data-path="./">
<a href="./#advantage">
go-fastdfs优点
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4" data-path="install.html">
<a href="install.html">
安装
</a>
<ul class="articles">
<li class="chapter " data-level="1.4.1" data-path="install.html">
<a href="install.html#quick">
极速体验
</a>
</li>
<li class="chapter " data-level="1.4.2" data-path="install.html">
<a href="install.html#docker">
Docker体验
</a>
</li>
<li class="chapter " data-level="1.4.3" data-path="install.html">
<a href="install.html#compiler_install">
编译安装
</a>
</li>
<li class="chapter " data-level="1.4.4" data-path="install.html">
<a href="install.html#small-cluster">
小集群安装
</a>
</li>
<li class="chapter " data-level="1.4.5" data-path="install.html">
<a href="install.html#big-cluster">
海量集群安装(推荐)
</a>
</li>
<li class="chapter active" data-level="1.4.6" data-path="ca.html">
<a href="ca.html">
https证书生成
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.5" data-path="authentication.html">
<a href="authentication.html">
认证
</a>
<ul class="articles">
<li class="chapter " data-level="1.5.1" data-path="authentication.html">
<a href="authentication.html#fingerprint">
按文件指纹认证
</a>
</li>
<li class="chapter " data-level="1.5.2" data-path="authentication.html">
<a href="authentication.html#google">
按google认证码认证
</a>
</li>
<li class="chapter " data-level="1.5.3" data-path="authentication.html">
<a href="authentication.html#custom">
用户自定义认证
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.6" data-path="usage.html">
<a href="usage.html">
语言"SDK"
</a>
<ul class="articles">
<li class="chapter " data-level="1.6.1" data-path="usage.html">
<a href="usage.html#description">
统一说明(重要)
</a>
</li>
<li class="chapter " data-level="1.6.2" data-path="usage.html">
<a href="usage.html#cmdline">
命令行上传
</a>
</li>
<li class="chapter " data-level="1.6.3" data-path="usage.html">
<a href="usage.html#web">
浏览器上传
</a>
</li>
<li class="chapter " data-level="1.6.4" data-path="usage.html">
<a href="usage.html#python">
Python语言
</a>
</li>
<li class="chapter " data-level="1.6.5" data-path="usage.html">
<a href="usage.html#go">
GO使用
</a>
</li>
<li class="chapter " data-level="1.6.6" data-path="usage.html">
<a href="usage.html#java">
Java语言
</a>
<ul class="articles">
<li class="chapter " data-level="1.6.6.1" data-path="usage.html">
<a href="usage.html#java-stream">
Java流上传
</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="chapter " data-level="1.7" data-path="breakpoint.html">
<a href="breakpoint.html#go">
断点续传"SDK"
</a>
<ul class="articles">
<li class="chapter " data-level="1.7.1" data-path="breakpoint.html">
<a href="breakpoint.html#go">
GO
</a>
</li>
<li class="chapter " data-level="1.7.2" data-path="breakpoint.html">
<a href="breakpoint.html#js">
Javascript
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.8" data-path="api.html">
<a href="api.html">
管理API
</a>
</li>
<li class="chapter " data-level="1.9" data-path="QA.html">
<a href="QA.html">
问题汇总
</a>
<ul class="articles">
<li class="chapter " data-level="1.9.1" data-path="QA.html">
<a href="QA.html">
常见问题
</a>
</li>
<li class="chapter " data-level="1.9.2" data-path="QA.html">
<a href="QA.html">
维护问题
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.10" data-path="upgrade.html">
<a href="upgrade.html">
更新历史
</a>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="." >https证书生成</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h1 id="&#x6CE8;&#x610F;&#xFF1A;&#x5148;&#x5207;&#x5230;conf&#x76EE;&#x5F55;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x6B65;&#x9AA4;&#xFF0C;&#x4E2D;&#x9014;&#x6709;&#x8F93;&#x5165;&#x7684;&#x8BF7;&#x6309;&#x63D0;&#x793A;&#x8FDB;&#x884C;&#x8F93;&#x5165;">&#x6CE8;&#x610F;&#xFF1A;&#x5148;&#x5207;&#x5230;conf&#x76EE;&#x5F55;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x6B65;&#x9AA4;&#xFF0C;&#x4E2D;&#x9014;&#x6709;&#x8F93;&#x5165;&#x7684;&#x8BF7;&#x6309;&#x63D0;&#x793A;&#x8FDB;&#x884C;&#x8F93;&#x5165;</h1>
<h2 id="1key&#x7684;&#x751F;&#x6210;">1.key&#x7684;&#x751F;&#x6210;</h2>
<pre><code>openssl genrsa -des3 -out server.key 2048
openssl rsa -in server.key -out server.key
</code></pre><h2 id="2-&#x751F;&#x6210;ca&#x7684;crt">2. &#x751F;&#x6210;CA&#x7684;crt</h2>
<pre><code>openssl req -new -x509 -key server.key -out ca.crt -days 3650
</code></pre><h2 id="3-csr&#x7684;&#x751F;&#x6210;&#x65B9;&#x6CD5;">3. csr&#x7684;&#x751F;&#x6210;&#x65B9;&#x6CD5;</h2>
<pre><code>openssl req -new -key server.key -out server.csr
</code></pre><h2 id="4-crt&#x751F;&#x6210;&#x65B9;&#x6CD5;">4. crt&#x751F;&#x6210;&#x65B9;&#x6CD5;</h2>
<pre><code>openssl x509 -req -days 3650 -in server.csr -CA ca.crt -CAkey server.key -CAcreateserial -out server.crt
</code></pre>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="install.html#big-cluster" class="navigation navigation-prev " aria-label="Previous page: 海量集群安装(推荐)">
<i class="fa fa-angle-left"></i>
</a>
<a href="authentication.html" class="navigation navigation-next " aria-label="Next page: 认证">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"https证书生成","level":"1.4.6","depth":2,"next":{"title":"认证","level":"1.5","depth":1,"path":"authentication.md","ref":"authentication.md","articles":[{"title":"按文件指纹认证","level":"1.5.1","depth":2,"anchor":"#fingerprint","path":"authentication.md","ref":"authentication.md#fingerprint","articles":[]},{"title":"按google认证码认证","level":"1.5.2","depth":2,"anchor":"#google","path":"authentication.md","ref":"authentication.md#google","articles":[]},{"title":"用户自定义认证","level":"1.5.3","depth":2,"anchor":"#custom","path":"authentication.md","ref":"authentication.md#custom","articles":[]}]},"previous":{"title":"海量集群安装(推荐)","level":"1.4.5","depth":2,"anchor":"#big-cluster","path":"install.md","ref":"install.md#big-cluster","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"ca.md","mtime":"2021-11-06T14:24:44.144Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-11-06T14:32:36.598Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
<script src="gitbook/gitbook.js"></script>
<script src="gitbook/theme.js"></script>
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="gitbook/gitbook-plugin-search/search.js"></script>
<script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>