Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 1:34 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Sep 01, 2016 7:15 pm 
Offline

Joined: Thu Sep 01, 2016 6:53 pm
Posts: 1
Hi folks!

I'm trying to import an X509 (RSA) key and its corresponding certificate to a Yubikey NEO. Given that the files were created with
Code:
openssl req -x509 -new -newkey rsa:2048 -days 1825 -nodes -subj '/CN=username' -keyout x509.key -out x509.crt

I'm trying to import the data with
Code:
yubico-piv-tool -s 9a -i x509.key -a import-key
yubico-piv-tool -s 9a -i x509.crt -a import-certificate

getting the following error for both of the commands:
Code:
Failed authentication with the application.

Same thing happens when I specify the (correct) PIN with -P.

Any suggestions?

Greetings,
/dev


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Fri Sep 02, 2016 3:53 am 
Offline

Joined: Sun Nov 15, 2015 11:47 pm
Posts: 36
To import a key (and a cert) you need the management key (specified by "-k"), not the PIN. So naturally, authentication fails.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group