Ruby
Certificates Examples for Ruby
Loading Certificates from Files
- Load Base64-encoded X.509 Certificate (.cer)
- Load DER encoded X.509 Certificate (.cer, .crt)
- Load PEM Format Certificate (.pem)
- Load CMS PKCS#7 Certificate (.p7b)
- Load Certificate from PFX (PKCS#12)
- Load PFX (PKCS#12) and List Certificates
- Load Certificate (.cer) and Private Key (.pvk) generated from makecert
- Load Certificate from .cer and Private Key from .pem
- How to Use an A3 Certificate with Chilkat
Smart Cards and USB Tokens
- Load Default Certificate from Smart Card or Token
- Load Certificate from Smart Card by Common Name
- Load Certificate from Smart Card by Serial Number
- Load Certificate from Smart Card by Key Usage
- Load Certificate from Smartcard in Reader (or from USB Token)
- Open Smartcard Certificate Store (or from USB Token)
- Validate a Smartcard PIN
Windows Certificate Store
- List Certificates in the Current User Certificate Store
- Load a Certificate from the Windows Certificate Store
- Find and Load Certificate by Thumbprint
- Find a Certificate in the "Other People" Windows Certificate Store
- Backup Windows Current User / Personal Certificates to a .zip
- Import a PFX/P12 into the Windows Certificate Stores
Converting and Exporting
- Convert to DER encoded X.509 Certificate (.cer, .crt)
- Convert Certificate from DER to PEM.
- Convert Cert + Key to PEM and PFX
- Export a Certificate's Private Key to Various Formats
- Export Digital Certificate's Public Key
- Get Certificate Public Key from PEM
- Get Public Key from Certificate PEM
- How to Parse a X.509 Certificate and Extract its Public Key
- Get RSA Key Modulus from .cer or .key
- Get a Certificate's Key Size
- Create X509PKIPathv1 Containing one Certificate
- Create JWK Set Containing Certificates
Certificate Properties and Extensions
- SPKI Fingerprint
- X509Certificate GetCertHash SHA256
- Get Certificate Authority Information Access
- Get Certificate CRL Distribution Points
- Subject Alternative Name
- Subject Alternative Name for ICP Brasil Certs
- Get Text Certificate Extensions by OID
- Get Certificate User Principal Name (UPN)
- Get Certificate Policy
- Get Issuer Certificate Information
- Binary Certificate Extension Data
- Get Certificate Distinguished Name in .NET Format
Trusted Roots and Certificate Chains
- Use a Custom Set of Trusted Root Certificates
- Load CA Cert Bundle into Trusted Roots
- Trust Specific Root CA Certificates
- Download and Trust the DigiCert Global Root CA
- Get Certificate Chain Certs
- Build Certificate Chain from Base64 Certificates
Validation, Revocation and Renewal
- Validate Certificate using OCSP Protocol
- Load .crl, Convert to XML, Get Revoked Serial Numbers and Dates
- Renew a DigiCert Certificate from an EST-enabled profile