cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
238
Views
0
Helpful
0
Replies

adding certificate in ios via java SSH client

MageshP2
Level 1
Level 1

Hi Greetings! 

We have an use-case to upload Server Certificate + private key + intermediate certificate into IOS.

We tried with pem option with the command crypto pki import <trustpoint name> pem exportable terminal password <password> creating a CLI session to device and it works.

But we face issues when we try to integrate in java. We use SSHJ client and we write the same cert+key+intercert content into the output-stream and it fails with the error 

Unable to decode key.
% PEM files import failed.

We built the content this way -> intermediate cert content + \n + quit + \n + encrypted pvt key + \n + quit + \n + server cert content + \n + quit

Request your help on this

0 Replies 0