-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
…ate Keys` utility API Private Keys is a new utility within the Digital Certificates bundle, enabling users to generate RSA, DSA, EC, and Ed25519 private keys. These keys can later be used to create X.509 certificates. Private keys can be optionally protected by a passphrase, which can be changed. They are stored in an encrypted form within the database using the PKCS#8 AES algorithm (aes_256_cbc). Additionally, private keys can be exported in PEM, PKCS#8, or PKCS#12 formats, with optional encryption.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- Register a new `Private keys` utility under `Digital certificates` and re-order certificate | ||
-- utilities so that `Self-signed certificates` goes after `Private keys`. | ||
UPDATE utils SET id = 11 WHERE id = 5; | ||
INSERT INTO utils (id, handle, name, keywords, parent_id) VALUES | ||
(5, 'certificates__private_keys', 'Private keys', 'private keys openssl encryption pki rsa dsa ec ecdsa curve ed25519 pkcs8 pkcs12 pem', 4); | ||
|
||
-- Create table to store private keys. | ||
CREATE TABLE IF NOT EXISTS user_data_certificates_private_keys | ||
( | ||
name TEXT NOT NULL COLLATE NOCASE, | ||
alg BLOB NOT NULL, | ||
pkcs8 BLOB NOT NULL, | ||
created_at INTEGER NOT NULL, | ||
user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE, | ||
PRIMARY KEY (name, user_id) | ||
) STRICT; |