Re: [packer] Re: unable to parse private key

2020-02-24 Thread Rickard von Essen
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?

On Mon, Feb 24, 2020, 21:37 Mohammed Afroz  wrote:

> 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:
>>
>> 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: tag: 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?
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/e35ebc76-b1b1-4267-8fd0-3690791b23bc%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt96OB-5hra%2BuEUMo9QTP1nUDfAPD9QpSHuWUxrjh0M7rw%40mail.gmail.com.


[packer] Re: unable to parse private key

2020-02-24 Thread Mohammed Afroz
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:
>
> 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: tag: 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? 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/e35ebc76-b1b1-4267-8fd0-3690791b23bc%40googlegroups.com.


[packer] Re: unable to parse private key

2020-02-24 Thread Mohammed Afroz
here is the command 
*sudo ssh-keygen -C noname*

below is the key fingerprint:
SHA256:iOaVjBMyhd3FeLA239rqS8SbHQYjjKdZKQhUDLM3JY4 noname

thanks for quick response.

On Monday, 24 February 2020 14:19:25 UTC-5, Mohammed Afroz wrote:
>
> 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: tag: 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? 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/79252ca4-1eae-46fa-b209-1006f159386b%40googlegroups.com.


Re: [packer] unable to parse private key

2020-02-24 Thread Rickard von Essen
Can you Shar one ot the keys and what command you used to create it?

On Mon, Feb 24, 2020, 20:19 Mohammed Afroz  wrote:

> 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: tag: 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?
>
> --
> 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+unsubscr...@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
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt_XSTjeF6ECb-ACviyryNvv103%2B82V__QcbheuLhjY-fw%40mail.gmail.com.


[packer] unable to parse private key

2020-02-24 Thread Mohammed Afroz
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: tag: 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? 

-- 
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+unsubscr...@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.