Skip to content

Commit e35ba8d

Browse files
authored
Merge pull request #658 from ljmf00/add-txt-pkcs8-key
Add `PKCS #8` and OpenVPN static key blocks
2 parents cf059f0 + 1b4e30e commit e35ba8d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pre_commit_hooks/detect_private_key.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
b'PuTTY-User-Key-File-2',
1212
b'BEGIN SSH2 ENCRYPTED PRIVATE KEY',
1313
b'BEGIN PGP PRIVATE KEY BLOCK',
14+
b'BEGIN ENCRYPTED PRIVATE KEY',
15+
b'BEGIN OpenVPN Static key V1',
1416
]
1517

1618

tests/detect_private_key_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
(b'-----BEGIN OPENSSH PRIVATE KEY-----', 1),
1111
(b'PuTTY-User-Key-File-2: ssh-rsa', 1),
1212
(b'---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----', 1),
13+
(b'-----BEGIN ENCRYPTED PRIVATE KEY-----', 1),
14+
(b'-----BEGIN OpenVPN Static key V1-----', 1),
1315
(b'ssh-rsa DATA', 0),
1416
(b'ssh-dsa DATA', 0),
1517
# Some arbitrary binary data

0 commit comments

Comments
 (0)