# 安装Openssl

## 背景

无他,为了 `https`

## windows安装Openssl环境

先下载 [openssl windows](https://slproweb.com/products/Win32OpenSSL.html) 建议下载完整版，我这里选择的是 `Win64 OpenSSL v3.1.2` ，毕竟嫌麻烦，怕 `light`轻量版少东西.

1. 安装时可以将路径设置在 `bin` 目录

   ```shell
   # 我的目录是
   C:\Program Files\OpenSSL-Win64\bin
   ```
2. 设置环境变量

   这一步和配置 `java` 环境类似

   ```shell
   # 我的电脑 => 右键[属性] => [高级系统设置] => [环境变量] => [系统变量] => Path => 新建
   # 填入上面安装设定的目录,并保存
   ```
3. 验证是否成功

   打开 `bash` 或者 `cmd`

   ```shell
   # 输入 openssl version
   # 正常显示版本号即成功
   ```

## linux安装Openssl环境

最近在玩 `AI` 绘画, `Stable Diffusion` 确实太吃性能和硬盘了,所以把双系统格了装回了`windows` ，还没有在 `linux` 上尝试 `Openssl` 环境，毕竟太多发行版，后续有空了再补上

## 参考

1. [如何在windows上安装Openssl环境](https://blog.csdn.net/xjs38829890/article/details/131635153)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ougege.gitbook.io/blog/docs/articles/windows/an-zhuang-openssl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
