hi Jason,

Thanks! Very nice code. In my use case the output is coming from openvpn 
cli (more precisely, openvpn --show-pkcs11-ids /path/to/opensc-pkcs11.so to 
get the a list of certificates on a smartcard, so not looking at the 
certificates themselves. I need to configure the config file for a vpn with 
the correct pkcs11 id to make life easier for colleagues when setting up a 
tunnel.

I use the x509 library as well, very handy.

I am not a programmer myself, and had forgotten how to use pointers :-)

On Thursday, March 27, 2025 at 6:18:34 PM UTC+1 Jason E. Aten wrote:

> Hi Natxo,
> You can also use "crypto/x509" x509.ParseCertificate() after pem.Decode() 
> from "encoding/pem", if you
> are only loading certificates and want a more rigorous way to determine 
> the certificate's contents.
> Example here: 
> https://github.com/glycerine/rpc25519/blob/master/selfcert/step5_viewcert.go#L24
> - Jason
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/e9e35bc8-7223-42c2-9d9f-be80005ab91fn%40googlegroups.com.

Reply via email to