openssl+RSA development example (including source code)

1. Introduction to RSA RSA (Rivest-Shamir-Adleman) is an asymmetric encryption algorithm jointly proposed by Ron Rivest, Adi Shamir and Leonard Adleman in 1977. It is the earliest algorithm for public key encryption and digital signatures. . The security of the RSA algorithm is based on the difficulty of factoring large numbers, that is, the problem […]

Protocol HTTP HTTPS SSL TLS SSL Certificate Cross-Domain (Super Detailed Version)

1. Network Computer Network: Computer network, a set of topological structures composed of nodes and edges. Edges are links, the links between routers are backbone links, and the links between routers and hosts are access links. Node, that is, host node or data exchange node, consists of host or data exchange device (or higher-level load […]

Openssl develops random number (random) generation (including source code)

openssl random number 1. RAND_bytes() function (recommended) 1.1 Underlying principles 1.2 RAND_bytes function description 1.3 RAND_bytes code example 2. RAND_pseudo_bytes()` function 2.1 RAND_pseudo_bytes() function description 2.2 RAND_pseudo_bytes() code example 3. RAND_seed() function 3.1 RAND_seed() function description 3.2 RAND_seed() code example 4. Summary In OpenSSL, random number generation is a very important task, used to generate […]

openssl+sm3 development example C++

openssl + sm3 development example 1. Introduction to SM3 2. SM3 code example 2.1 SM3 content hash 2.2 SM3 file hash 3. Code address 3. Supplementary knowledge 1. Bit Padding 1. SM3 introduction SM3 is a cryptographic hash function released by China’s State Cryptography Administration (SCA). It is a SHA-3 candidate algorithm and is also […]

Solve WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python

Table of Contents Solve the problem of WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available Problem Description solution 1. Check the Python environment 2. Install required dependencies For Debian/Ubuntu systems: For Fedora/CentOS systems: For MacOS systems: For Windows systems: 3. Reinstall the Python environment 4. […]

Construction of C++ development environment for openssl in linux system

Article directory 1. OpenSSL dynamic compilation and development 1.1 Install OpenSSL library 1.2 Create C++ source code files 1.3 Compiling C++ programs 1.4 Run the program 2. OpenSSL static compilation and development 2.1 OpenSSL download source file 2.2 Compile OpenSSL 2.3 Static linking to OpenSSL 2.4 Run the program 3. openssl version 1. OpenSSL 1.0.x […]

HTTPS, SSL/TLS, HTTPS operation process, RSA encryption algorithm, AES encryption algorithm

1. Why do websites use security certificates The network environment we live in is complex and diverse, and can be roughly divided into two categories: one is a trusted network service provider, such as a directly connected telecom operator’s network, network cable, 4G, 5G; the other is untrustworthy Network, such as WIFI, LAN router, Internet […]

Practical combat: Install the SSL certificate on the Nginx server and configure the forced jump to https-2023.10.16 (test successful)

Practical combat: Install the SSL certificate on the Nginx server and configure the forced jump to https-2023.10.16 (test successful) Original link https://help.aliyun.com/zh/ssl-certificate/user-guide/install-ssl-certificates-on-nginx-servers-or-tengine-servers?spm=a2c4g.11186623.0.0.7ab93cb39AuLXF Update time: 2023-10-12 11:54:24 Product Details Related technology circles my collection You can install an SSL certificate on the Nginx or Tengine server to securely access the web server through HTTPS. This article […]

Automatically configure SSL certificates for Nginx using Certbot

Published on 2023-07-13 on https://chenhaotian.top/linux/certbot-nginx/ Use Certbot to automatically configure SSL certificates for Nginx Configuration steps Take Debian 11 as an example 1. Install Certbot and Nginx plug-ins sudo apt-get update sudo apt-get install certbot python3-certbot-nginx 2. Obtain and install the certificate Run Certbot to automatically install the SSL certificate. Note replacing your_domain: sudo certbot […]

[Utility Tool Series] (7) Create a certificate using OpenSSL

Article directory Preface 1. Introduction to OpenSSL 2. Create a certificate script file 1. Generate root certificate 2. Generate end-user certificate 3. Revoke end-user certificates 4. Update revocation list (CRL) 5. OpenSSL configuration file Summarize Foreword Recently I have been working on PDF signature-related functions, which require the use of certificates for signature. So I […]