Displaying 4 results from an estimated 4 matches for "do_convert_to_pem".
2024 May 16
1
PEM_write_ed25519
For no particular reason, i'm looking to convert my ed25519 private key
to pem. A user on stackoverflow suggested running `ssh-keygen -p -f
path/to/your/key -m pem` [^1], which errors, printing
`do_convert_to_pem: unsupported key type ED25519`. Looking at the
corresponding line in source, it seems that only RSA, DSA, & ECDSA keys
can be converted to pem.[^2] With new keys defaulting to ED25519 as of
[1.471][^3], are there plans to add support for exporting ed25519 to pem?
- Anabelle
[^1]: <https...
2012 Jul 28
1
[PATCH] ssh-keygen: support public key import/export using SubjectPublicKeyInfo
.../ssh-keygen.c
index 5fcd3a1..072c49a 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -137,7 +137,8 @@ int convert_from = 0;
enum {
FMT_RFC4716,
FMT_PKCS8,
- FMT_PEM
+ FMT_PEM,
+ FMT_SUBJECTINFO
} convert_format = FMT_RFC4716;
int print_public = 0;
int print_generic = 0;
@@ -330,6 +331,27 @@ do_convert_to_pem(Key *k)
}
static void
+do_convert_to_subjectinfo(Key *k)
+{
+ switch (key_type_plain(k->type)) {
+ case KEY_RSA:
+ if (!PEM_write_RSA_PUBKEY(stdout, k->rsa))
+ fatal("PEM_write_RSAPublicKey failed");
+ break;
+#if notyet /* OpenSSH 0.9.8 lacks this function */
+ case KEY_DSA...
2024 Aug 26
1
[Bug 3724] New: Unable to convert from OpenSSH to PKCS8 or PEM
...-bugs at mindrot.org
Reporter: MacGyver031 at web.de
Hi,
I am trying to convert existing OpenSSH ED25519 into PEM or PKCS8
format (I need it in order to upload it to Yubikey security keys).
If I run "ssh-keygen -f <myKey> -m 'PEM' -e", then I get the error
"do_convert_to_pem: unsupported key type ED25519"
Could you check why I am unable to convert ED25519 keys? I am able to
convert RSA keys without issues.
Thanks and BR
--
You are receiving this mail because:
You are watching the assignee of the bug.
2015 Mar 31
7
Wanted: smartcard with ECDSA support
Hi list,
I have no idea if Damien Miller had the time to work on that.
I have an initial patch to authenticate using PKCS#11 and ECDSA keys.
This requires OpenSSL 1.0.2, prior OpenSSL versions do not expose the
required interfaces to override the signature function pointer for ECDSA.
The only limitation is that the OpenSSL API misses some cleanup function
(finish, for instance), hence I have yet