NDC & PKI
[Day 9] 1. PKI Lab in Short (XCA)
D
DITISS AdminNaming Conventions for Better Understanding
Root CA
- 001-001-DB-rootca.xdb – Root CA Database
- 001-002-CRT-RootCA.crt – Root CA Certificate
Sub CA
- 002-001-DB-subca.xdb – Sub CA Database
- 002-002-CSR-SubCA.crt – Sub CA Certificate Signing Request
- 002-003-CRT-SubCA.crt – Sub CA Certificate
Tinku
- 003-001-DB-tinku.xdb – Tinku's Database
- 003-002-CSR-tinku.pem – Tinku's Certificate Signing Request
- 003-003-CRT-tinku.crt – Tinku's Certificate
- 003-004-CRT_CHAIN_KEY-tinku.pfx – Tinku's Certificate with Private Key
Steps for PKI Setup
1. Root CA Setup
- Create a Private Key in Root CA.
- Create a Self-Signed Certificate in Root CA:
- Use the "General CA Certificate" template.
- Fill in details and name it ShuHaRi General Certificate.
- Export the certificate to the Root CA folder.
- Import the exported certificate into Tinku's database.
2. Sub CA Setup
- Create a Private Key for Sub CA.
- Create a CSR (Certificate Signing Request):
- Apply CA extension.
- Name it ShuHaRi SubCA Certificate and fill in the details.
- Export the CSR to the Sub CA folder.
- Import the CSR into Root CA.
- Issue the Sub CA Certificate:
- Use the "Use this Certificate for Signing" option.
- Create and export the certificate to the Sub CA folder.
- Go to Tinku and import the Sub CA certificate to view the certificate hierarchy.
3. Tinku Setup
- Create a Private Key for Tinku.
- Create a CSR (New Request):
- Subject Name:
tinku@shuaril.local - Email:
info@shuhari.local - Click OK and export the CSR to Tinku's folder.
- Subject Name:
- Import the CSR into Sub CA and issue a certificate:
- No template needed.
- Export Tinku's Certificate to the Tinku folder.
4. Finalizing the Chain of Trust
- Import Certificates in Tinku:
- Import the Sub CA certificate.
- Export the certificate with extension (bind private key and certificate):
.pfx- Use Tinku's password.
- Save in Tinku folder.
- Go to MMC (Microsoft Management Console):
- Import the Root CA certificate.
- Import Tinku's file:
.pfx- Enter password, click Next, and OK.
- Verify that Tinku's Certificate is now visible.
5. Protecting Documents
Follow your existing steps to protect Word and PDF documents using the certificate chain.
Read Next
8/26/2026
[Day 9] 2. Secure Email Connection in Thunder Bird Using PKI
**Pre-requisite:** A mail server configured to send emails between accounts. --- ## **Setup Overview** 1. **Install Thunderbird.** 2. **For...
8/26/2026
[Day 9] 3. Port forwarding using PREROUTING chain
### **Setup Details** - **Machine**: Debian (`192.168.80.128`) - **Service**: Apache installed (default port: 80) --- ## **Objective** Us...