Re: pk12util: no user certs from given nickname

Hubert Kario <[email protected]>
Newsgroups gmane.comp.mozilla.crypto
Message-ID <[email protected]>
On Friday, 20 January 2017 19:14:08 CET Yao, Julie wrote:
> certutil –L –d config/nssdb 
> 
> Certificate Nickname                                         Trust
> Attributes
> SSL,S/MIME,JAR/XPI 
> juliek12                                                     Cu,Cu,Cu
> juliek1                                                      Cu,Cu,Cu
> soneraclass2ca                                               CT,,
> 
> pk12util -o /tmp/exportfile.pkcs12 -W changeit -d config/nssdb/ -K changeit
> –n soneraclass2ca
> pk12util: no user certs from given nickname
> 
> If the alias is key, pk12util works fine. It fails in certs.


it does look like the pk12util does not support exporting just the 
certificate, if you'd like this feature, I suggest opening a bugzilla feature 
request

for exporting just certificates, you can use certutil -L with either -r or -a

the resulting PEM or DER file can be converted to PKCS#12 file with `openssl 
pkcs12` utility
 
> 
> -----Original Message-----
> From: Hubert Kario [mailto:[email protected]] 
> Sent: Friday, January 20, 2017 7:11 AM
> To: [email protected]
> Cc: Yao, Julie <[email protected]>
> Subject: Re: pk12util: no user certs from given nickname
> 
> On Thursday, 19 January 2017 19:51:59 CET Yao, Julie wrote:
> 
> > When I ran certutil to list certs/keys in my nssdb, it showed a couple 
> > of certificates in the db. But when I tried to use pk12util to export 
> > one of the certificates, I got: pk12util: no user certs from given 
> > nickname
> 
> 
> can you provide exact commands and their outputs you have used?
> 
> 
> --
> Regards,
> Hubert Kario
> Senior Quality Engineer, QE BaseOS Security team
> Web: www.cz.redhat.com
> Red Hat Czech s.r.o., Purkyňova 99/71, 612 45, Brno, Czech Republic


-- 
Regards,
Hubert Kario
Senior Quality Engineer, QE BaseOS Security team
Web: www.cz.redhat.com
Red Hat Czech s.r.o., Purkyňova 99/71, 612 45, Brno, Czech Republic

-- 
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABCgAGBQJYheX/AAoJEJKo0bgB0vX1jaEP/2BgPgYkXm7HFgQFSJ+vcP4w
qoZ8X3KmDcIyGJ/oNPe9KRdIqpsg1kMBPcx6E6W0/TFlhyqci87eXayYYOj8GRix
UrbRQuzNrzr7xstCKXqhMVEdx/hgGM115815hE8WmbL44Kx3nFs4uEb3kC/b3CkR
Y7QFc3UvH3tNs7rShUYUlY7AAjbgM8lplRE4lVB4nbqDfwNwqLUJMmZAFGW+IZ5R
doVJfzg+wyg1IDm5yYNOU/sV5MHpEHTCLzeKKIWarydPRRzkcoNnhUB+d9XOthyE
xMk5rGhmZNfRYPm68Ms8rtAz4DDRiWIFev/RUAIye+qQmnkBp2FzUSTuGwIPrmJa
/DbpY4u0K+ELuoa8w+bWGwGQPvjJRHTCkchjh3ixtPmvc4IEvsfh//e8yf3hMyJ2
XmIPnO5/eq9fijeZO4PgYIZ8gsedwaRMAkBnIpGxB+hYEFY5QB4qpdobfTANbw/M
RLZzSefL+yI/eKjntMl/81kYlN+c+zKa9NmmLEgal05HbGkMFcvDNQF2aAVgKOrW
nGn+Yh8ItqGlwCyt9LmDIEtRIf8M01u1HkvX4goUEuT3Cwqi5MqAaANMvs+YV7Be
miJhVMySqg2uZcc0YtlRIF2E21hkj6mKffMqmyG0Nnk82Rrj9HZjy+bhcng442DV
4Dc+ma2/FbgKfV4YWm8V
=Xug1
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.