packer-cn/helper
Adrien Delorme b24911661f
add sshkey package and ssh-keygen comand (#10101)
* add sshkey.Generate function that returns an sshkey.Pair to be used with openssh.
* add cmd/ssh-keygen/main.go for testing purposes
* add a test calling ssh.ParsePrivateKey & ssh.ParseAuthorizedKey (which is very
   similar to what openssh would do to read a keypair)

The wrapping of the keys should be handled by crypto/x509.MarshalPKCS8PrivateKey 
& x/crypto/ssh.NewPublicKey which does not work for ed25519 and dsa. 
x509.MarshalPKCS8PrivateKey marshals ed25519 keys but the keys did not work with openssh. 
x509.MarshalPKCS8PrivateKey does not handle dsa keys.
So I had to 'wrap' those manually by reading the code of the openssh package.
Note that ssh.NewPublicKey works with any keytype. I should probably do a PR to ssh to have a NewPrivateKey & Marshalling funcs
2020-10-19 10:24:34 +02:00
..
builder add test file 2020-09-04 11:56:32 -07:00
common Replace file shared state by statebag (#9238) 2020-05-19 11:49:48 +02:00
communicator add sshkey package and ssh-keygen comand (#10101) 2020-10-19 10:24:34 +02:00
config [azure-chroot] Updating parameter `exlude_from_latest` to `exclude_from_latest` (#10034) 2020-10-07 11:08:33 +02:00
enumflag Fail on unknown values of -on-error 2016-09-17 14:42:21 +00:00
flag-kv TestStringSlice_Set: check error even if none is returned 2020-03-12 18:01:20 +01:00
flag-slice Support -flag=var1,var2,var3 to fix #2332 2015-06-26 17:54:59 -07:00
multistep scaleway: add pre validate step (check image and snapshot names) (#9840) 2020-09-18 15:37:48 -04:00
ssh adding basic support for OpenSSH CertificateFile support 2020-07-10 16:54:08 -07:00
tests tests/provisioners: Add TestProvsionerPreCheck function 2020-04-06 16:52:24 -04:00
useragent Include arch and os 2018-04-05 14:28:50 -04:00
wrappedreadline golang 1.14 doesn't like calling NewFile on existing files. Port solution over from Terraform 2020-04-09 14:38:17 -07:00
wrappedstreams golang 1.14 doesn't like calling NewFile on existing files. Port solution over from Terraform 2020-04-09 14:38:17 -07:00