मुख्य सामग्री पर जाएँ
Skillpedia
प्रॉम्प्ट और LLM35k · #7757

configuring-hsm-for-key-storage

यह क्या करती है

यह टूल सिक्योरिटी डिवाइस (HSM) को इस तरह सेट अप करने में मदद करता है कि वे cryptographic keys को बहुत सुरक्षित तरीके से स्टोर कर सकें। इससे आप इन keys को generate, इस्तेमाल और manage कर सकते हैं, और ये keys कभी भी उस सुरक्षित डिवाइस से बाहर नहीं जातीं।

कब इस्तेमाल करें

  • ✓जब आपको secret keys को सुरक्षित रखना हो, ताकि उन्हें कभी चुराया न जा सके।
  • ✓जब ऐसे सिस्टम सेट अप करने हों जिनमें keys के लिए हाई सिक्योरिटी ज़रूरी हो।
  • ✓जब सुरक्षित वातावरण में keys कैसे manage होती हैं, यह टेस्ट करना हो।

Skill का लिंक

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/configuring-hsm-for-key-storage/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/configuring-hsm-for-key-storage/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी encryption keys स्टोर करने के लिए एक HSM कॉन्फ़िगर करो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह टूल PKCS#11 नाम के standard का इस्तेमाल करके HSM से बात करता है। यह असली हार्डवेयर डिवाइस और software simulation (SoftHSM2), दोनों के साथ काम कर सकता है, ताकि HSM के सुरक्षित वातावरण के अंदर keys बनाई और इस्तेमाल की जा सकें।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Configuring HSM for Key Storage

Overview

Hardware Security Modules (HSMs) are tamper-resistant physical devices that safeguard cryptographic keys and perform cryptographic operations in a hardened environment. Keys stored in an HSM never leave the device boundary, providing the highest level of key protection. This skill covers configuring HSMs using the PKCS#11 standard interface, including key generation, signing, encryption, and key management using both physical HSMs and SoftHSM2 for development.

When to Use

  • When deploying or configuring configuring hsm for key storage capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Familiarity with cryptography concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Objectives

  • Configure SoftHSM2 as a development PKCS#11 provider
  • Generate and manage keys inside the HSM via PKCS#11
  • Perform cryptographic operations (sign, verify, encrypt, decrypt) using HSM-resident keys
  • Implement HSM-backed certificate authority operations
  • Configure key access policies and user authentication
  • Interface with cloud HSM services (AWS CloudHSM, Azure)

Key Concepts

HSM Compliance Levels

FIPS Level Protection Use Case
FIPS 140-2 Level 1 Software only Development
FIPS 140-2 Level 2 Tamper-evident, role-based auth General production
FIPS 140-2 Level 3 Tamper-resistant, identity-based auth Financial, government
FIPS 140-2 Level 4 Physical tamper response Military, classified

PKCS#11 Architecture

Application --> PKCS#11 API --> HSM Provider --> Hardware HSM
                                    |
                              (SoftHSM2 for dev)

Key Objects in PKCS#11

Object Type Description Operations
CKO_SECRET_KEY Symmetric keys (AES) Encrypt, Decrypt, Wrap
CKO_PUBLIC_KEY Public keys (RSA, EC) Verify, Encrypt, Wrap
CKO_PRIVATE_KEY Private keys (RSA, EC) Sign, Decrypt, Unwrap
CKO_CERTIFICATE X.509 certificates Storage, retrieval

Security Considerations

  • Never export private keys from HSM (use CKA_EXTRACTABLE=False)
  • Use separate slots/partitions for different applications
  • Implement multi-person key ceremony for CA root keys
  • Enable audit logging for all HSM operations
  • Implement HSM backup and disaster recovery
  • Use strong PINs and enable SO (Security Officer) PIN

Validation Criteria

  • SoftHSM2 initializes with token and user PIN
  • AES key generates inside HSM
  • RSA key pair generates inside HSM
  • Encryption/decryption uses HSM-resident keys
  • Signing/verification uses HSM-resident keys
  • Keys cannot be exported (non-extractable)
  • Key listing shows all HSM-stored objects
अक्सर पूछे जाने वाले सवाल

HSM क्या है?

HSM का पूरा नाम Hardware Security Module है। यह एक सुरक्षित फिज़िकल डिवाइस है जो cryptographic keys की रक्षा करता है और उन पर operations करता है, ताकि keys कभी डिवाइस से बाहर न जाएं।

PKCS#11 क्या है?

PKCS#11 एक standard है जो बताता है कि programs HSM जैसे सुरक्षा डिवाइसों से कैसे बात करें, ताकि उनकी keys और cryptographic functions का इस्तेमाल किया जा सके।

असली HSM और SoftHSM2 में क्या फ़र्क है?

असली HSM एक वास्तविक hardware डिवाइस है जो सबसे ज़्यादा सुरक्षा देता है। SoftHSM2 एक software simulation है जिसे development और testing के लिए इस्तेमाल किया जाता है, और इसे सामान्य कंप्यूटर पर सेट अप करना आसान है।

जानकारी

लेखक का मूल विवरण

Configures Hardware Security Modules for cryptographic key storage using the PKCS#11 standard interface, covering key generation, signing, encryption, and key management on physical HSMs and SoftHSM2 for development. Use when protecting cryptographic keys so they never leave a hardened device boundary, or when building and testing PKCS#11-based key management workflows.

repo: mukul975/Anthropic-Cybersecurity-Skills

लोकप्रियता

GitHub स्टार
35k
रैंकिंग में स्थान
#7757
लाइसेंस
Apache-2.0
अपडेट की गई
31/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills