摘要: 先贴总结: 本机安装ssh,check ssh是否安装成功: ssh 或者 ssh-V 2. vscode安装remote development 插件 3. 配置密钥 (1)在本地机器生成密钥对(公钥+私钥):ssh-keygen (2)私钥放本机,公钥放远程(~/.ssh路径下) (3)在远程机 阅读全文
posted @ 2023-04-18 21:41 MasonLee 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 如何使用openssl生成证书及签名 第一步,生成私钥 $ openssl genrsa -out privatekey.pem 2048 查看生成的私钥内容 $ file privatekey.pem privatekey.pem: PEM RSA private key $ cat privat 阅读全文
posted @ 2023-04-18 20:51 MasonLee 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 这里生成的证书是用来给网站启用https用的 有点麻烦,要自己建一个CA,然后对自己的请求文件进行认证然后生成证书,私钥和证书,一共俩 ubuntu上一般都自带安装了OpenSSL ubuntu:~$ openssl OpenSSL> version OpenSSL 1.1.1 11 Sep 201 阅读全文
posted @ 2023-04-18 20:48 MasonLee 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 了解一些关于HTTPS的基本概念,以及HTTPS中使用到加密方式、数字证书的格式和验证逻辑 1. HTTPS相关基本概念 1.1 HTTP 超文本传输协议(Hyper Text Transfer Protocol,HTTP)是一个简单的请求-响应协议,它通常运行在TCP之上。它指定了客户端可能发送给 阅读全文
posted @ 2023-04-18 19:59 MasonLee 阅读(370) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # This script creates a .zip backup of gitea running inside docker and copies the backup file to the backup directory echo "Delete older b 阅读全文
posted @ 2023-04-18 13:56 MasonLee 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 简易的命令行入门教程: Git 全局设置: git config --global user.name "Mason" git config --global user.email "xx@qq.com" 创建 git 仓库: mkdir test3 cd test3 git init touch 阅读全文
posted @ 2023-04-18 11:21 MasonLee 阅读(9) 评论(0) 推荐(0) 编辑