i need cryptography guidance, is there a way i could derive a wireguard public key from a x509 certificate

i think wireguard keys are curve25519 and i think x509 can have ed25519 keys but i donot know what is the difference


i don't mean like an abitrary certificate i mean like can i craft a cert that would work for boring old tls but that also i can reuse/transform the keypair for wireguard

consensus is: yes, libsodium has a method to turn a ed25519 keypair or half of one into a curve25519 equivalent

thanks all

Sign in to participate in the conversation

Chitter is a social network fostering a friendly, inclusive, and incredibly soft community.