diff --git a/piv_identity.go b/piv_identity.go index 1125285..1fc942e 100644 --- a/piv_identity.go +++ b/piv_identity.go @@ -80,6 +80,7 @@ func (ident *PivIdentity) Public() crypto.PublicKey { if err != nil { return nil } + return cert.PublicKey }