unable to parse private key

39 views
Skip to first unread message

Mohammed Afroz

unread,
Feb 24, 2020, 2:19:25 PM2/24/20
to Packer
while I validate my template json file, packer throws the exception as below:

Template validation failed. Errors are shown below.

Errors validating build 'triton'. 1 error occurred:
* Error creating Triton request signer: unable to parse private key: asn1: structure error: tags don't match (16 vs {class:1 tag:15 length:112 isCompound:true}) {optional:false explicit:false application:false private:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} pkcs1PrivateKey @2

I have tried generating new the ssh key but no luck, did anyone encountered this before? 

Rickard von Essen

unread,
Feb 24, 2020, 2:37:56 PM2/24/20
to packe...@googlegroups.com
Can you Shar one ot the keys and what command you used to create it? 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a547f312-e30a-4870-96a9-1aa80c503fa8%40googlegroups.com.

Mohammed Afroz

unread,
Feb 24, 2020, 3:19:58 PM2/24/20
to Packer
here is the command 
sudo ssh-keygen -C noname

below is the key fingerprint:
SHA256:iOaVjBMyhd3FeLA239rqS8SbHQYjjKdZKQhUDLM3JY4 noname

thanks for quick response.

Mohammed Afroz

unread,
Feb 24, 2020, 3:37:47 PM2/24/20
to Packer
if am right this issue is similar to https://github.com/joyent/triton-kubernetes/issues/11


On Monday, 24 February 2020 14:19:25 UTC-5, Mohammed Afroz wrote:

Rickard von Essen

unread,
Feb 24, 2020, 3:59:54 PM2/24/20
to packe...@googlegroups.com
Is thia the key you use for https://packer.io/docs/builders/triton.html#triton_key_material?

Does it have a passphrase? Have you loaded it into your ssh-agent? 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages