plan9fox/sys
cinap_lenrek 88060e7501 libsec: add X509reqtoRSApub() function and return subject alt names in X509to*pub() name buffer
We need a way to parse a rsa certificate request and return the public
key and subject names. The new function X509reqtoRSApub() works the
same way as X509toRSApub() but on a certificate request.

We also need to support certificates that are valid for multiple domain
names (as tlshand does not support certificate selection). For this
reason, a comma separated list is returned as the certificate subject,
making it symmetric to X509rsareq() handling.

A little helper is provided with this change (auth/x5092pub) that takes
a certificate (or a certificate request when -r flag is provided) and
outputs the RSA public key in plan 9 format appended with the subject
attribute.
2021-07-04 22:00:24 +00:00
..
doc
games/lib fortunes: That depends on how you define native. -- Andre Garzia 2021-02-09 23:11:08 -05:00
include libsec: add X509reqtoRSApub() function and return subject alt names in X509to*pub() name buffer 2021-07-04 22:00:24 +00:00
lib troff: fix mangled fonts and character files 2021-06-15 16:13:59 +00:00
man libsec: add X509reqtoRSApub() function and return subject alt names in X509to*pub() name buffer 2021-07-04 22:00:24 +00:00
src libsec: add X509reqtoRSApub() function and return subject alt names in X509to*pub() name buffer 2021-07-04 22:00:24 +00:00