Skip to content

Instantly share code, notes, and snippets.

View danhhuynh25029's full-sized avatar
🎯
Focusing

Danh Huynh danhhuynh25029

🎯
Focusing
View GitHub Profile
@danhhuynh25029
danhhuynh25029 / self-signed-certificate-with-custom-ca.md
Created November 28, 2024 08:29 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@animal = ('cat','dog','cow');
# các phần tử trong animal được đánh số từ 0 -> 2
# Để lấy ra giá trị của chúng ta chỉ cần
print $animal[0] # cat nằm ở vị trí 0
print $animal[1] # cat nằm ở vị trí 1
print $animal[2] # cat nằm ở vị trí 2
# Khai báo kiểu dữ liệu scalar
$a = 10;