Using certificates for SSH authentication
Using certificates for SSH authentication
Posted Nov 8, 2022 22:41 UTC (Tue) by ras (subscriber, #33059)In reply to: Using certificates for SSH authentication by jonesmz
Parent article: Using certificates for SSH authentication
I'm curious, what is the motivation?
I've struggled for literally days to create x509 certificates that some application (like OpenVPN, or IPSec) will accept. Maybe parsing asn.1 is hard as mjg59 says, but I've had to do it ISO 7816 card and, well, at the end of the day it's just a binary format. It never caused me a real world issue when using x509.
It was the complexity of x509 itself and it myriad of options that cause the issues. You have mind read useless error messages, and go on whumpus hunts for OID's that no one has every heard of to set options or flags some programmer apparently decided was necessary. Yet as far as I could tell, I could tell those options had no effect whatsoever on security. For example flags like "may be used to sign other certificates" may be useful for x509 PKI, but are of no use whatsoever outside of it - yet applications will insist on them being set one way or the other. Trying to get two ends of a IPSec connection to agree on what was a valid x509 cert sometimes seemed like it would be impossible.
After dealing with that, the simplicity of "just give me a raw key pair please" that ssh and wireguard employ is a breath of fresh air. The only reason I could think of for using x509 is you wanted to plug into the existing CA / PKI system.
