[jira] [Commented] (WAGON-491) Being able to set certificate via byte[] not only a file

2019-01-06 Thread Michael Osipov (JIRA)


[ 
https://issues.apache.org/jira/browse/WAGON-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16735212#comment-16735212
 ] 

Michael Osipov commented on WAGON-491:
--

I will evaluate this for the next iteration.

> Being able to set certificate via byte[] not only a file
> 
>
> Key: WAGON-491
> URL: https://issues.apache.org/jira/browse/WAGON-491
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-ssh
>Reporter: Laurent Granié
>Priority: Major
> Attachments: 20181206-wagon-ssh.patch
>
>
> I'm using wagon outside Maven.
> I would like to authenticate on sftp servers via a certificate.
> It's possible today via a file with a file path but not if I include the 
> certificate in the .jar.
> I would like to be able to set the certificate with a byte[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WAGON-491) Being able to set certificate via byte[] not only a file

2018-12-06 Thread JIRA


[ 
https://issues.apache.org/jira/browse/WAGON-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16711651#comment-16711651
 ] 

Laurent Granié commented on WAGON-491:
--

Have a look at the new attached file 20181206-wagon-ssh.patch

> Being able to set certificate via byte[] not only a file
> 
>
> Key: WAGON-491
> URL: https://issues.apache.org/jira/browse/WAGON-491
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-ssh
>Reporter: Laurent Granié
>Priority: Major
> Fix For: waiting-for-feedback
>
> Attachments: 20181206-wagon-ssh.patch
>
>
> I'm using wagon outside Maven.
> I would like to authenticate on sftp servers via a certificate.
> It's possible today via a file with a file path but not if I include the 
> certificate in the .jar.
> I would like to be able to set the certificate with a byte[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WAGON-491) Being able to set certificate via byte[] not only a file

2018-10-30 Thread JIRA


[ 
https://issues.apache.org/jira/browse/WAGON-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16668704#comment-16668704
 ] 

Laurent Granié commented on WAGON-491:
--

I was thinking to use 
Jsch.[addIdentity|https://epaul.github.io/jsch-documentation/simple.javadoc/com/jcraft/jsch/JSch.html#addIdentity-java.lang.String-byte:A-byte:A-byte:A-]([String|http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]
 name, byte[] prvkey, byte[] pubkey, byte[] passphrase)

> Being able to set certificate via byte[] not only a file
> 
>
> Key: WAGON-491
> URL: https://issues.apache.org/jira/browse/WAGON-491
> Project: Maven Wagon
>  Issue Type: New Feature
>  Components: wagon-ssh
>Reporter: Laurent Granié
>Priority: Major
> Fix For: waiting-for-feedback
>
>
> I'm using wagon outside Maven.
> I would like to authenticate on sftp servers via a certificate.
> It's possible today via a file with a file path but not if I include the 
> certificate in the .jar.
> I would like to be able to set the certificate with a byte[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WAGON-491) Being able to set certificate via byte[] not only a file

2018-05-20 Thread Michael Osipov (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16482029#comment-16482029
 ] 

Michael Osipov commented on WAGON-491:
--

[~slachiewicz], believe it or not. I have the very same question in my mind. 
Moreover, we will require NIO2 here to limit the read permissions to the temp 
file.

> Being able to set certificate via byte[] not only a file
> 
>
> Key: WAGON-491
> URL: https://issues.apache.org/jira/browse/WAGON-491
> Project: Maven Wagon
>  Issue Type: Bug
>  Components: wagon-ssh
>Reporter: Laurent Granié
>Priority: Major
> Fix For: waiting-for-feedback
>
>
> I'm using wagon outside Maven.
> I would like to authenticate on sftp servers via a certificate.
> It's possible today via a file with a file path but not if I include the 
> certificate in the .jar.
> I would like to be able to set the certificate with a byte[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WAGON-491) Being able to set certificate via byte[] not only a file

2018-05-20 Thread Sylwester Lachiewicz (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16482028#comment-16482028
 ] 

Sylwester Lachiewicz commented on WAGON-491:


Hi, only question can be, where we should temporary store private key when we 
execute external command that require to pass filename with key as parameter.

> Being able to set certificate via byte[] not only a file
> 
>
> Key: WAGON-491
> URL: https://issues.apache.org/jira/browse/WAGON-491
> Project: Maven Wagon
>  Issue Type: Bug
>  Components: wagon-ssh
>Reporter: Laurent Granié
>Priority: Major
> Fix For: waiting-for-feedback
>
>
> I'm using wagon outside Maven.
> I would like to authenticate on sftp servers via a certificate.
> It's possible today via a file with a file path but not if I include the 
> certificate in the .jar.
> I would like to be able to set the certificate with a byte[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WAGON-491) Being able to set certificate via byte[] not only a file

2018-05-20 Thread Michael Osipov (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16482023#comment-16482023
 ] 

Michael Osipov commented on WAGON-491:
--

I am aware of the current state. My proposal is that you take a look at the 
code, fork the repo on GitHub, make the appropriate changes and provide it to 
us. I will review and merge.

> Being able to set certificate via byte[] not only a file
> 
>
> Key: WAGON-491
> URL: https://issues.apache.org/jira/browse/WAGON-491
> Project: Maven Wagon
>  Issue Type: Bug
>  Components: wagon-ssh
>Reporter: Laurent Granié
>Priority: Major
> Fix For: waiting-for-feedback
>
>
> I'm using wagon outside Maven.
> I would like to authenticate on sftp servers via a certificate.
> It's possible today via a file with a file path but not if I include the 
> certificate in the .jar.
> I would like to be able to set the certificate with a byte[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WAGON-491) Being able to set certificate via byte[] not only a file

2018-05-20 Thread JIRA

[ 
https://issues.apache.org/jira/browse/WAGON-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16481905#comment-16481905
 ] 

Laurent Granié commented on WAGON-491:
--

Sorry : PR?

Today, the only way to set the private key is via 
[{{AuthenticationInfo}}|http://maven.apache.org/wagon/wagon-provider-api/apidocs/org/apache/maven/wagon/authentication/AuthenticationInfo.html]
 using the method
| 
|{{[setPrivateKey|http://maven.apache.org/wagon/wagon-provider-api/apidocs/org/apache/maven/wagon/authentication/AuthenticationInfo.html#setPrivateKey-java.lang.String-]([String|http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true]
 privateKey)}}
Set the absolute path to private key file.|

The parameter is an absolute path and so, it is not possible to integrate the 
key in a jar.

> Being able to set certificate via byte[] not only a file
> 
>
> Key: WAGON-491
> URL: https://issues.apache.org/jira/browse/WAGON-491
> Project: Maven Wagon
>  Issue Type: Bug
>  Components: wagon-ssh
>Reporter: Laurent Granié
>Priority: Major
> Fix For: waiting-for-feedback
>
>
> I'm using wagon outside Maven.
> I would like to authenticate on sftp servers via a certificate.
> It's possible today via a file with a file path but not if I include the 
> certificate in the .jar.
> I would like to be able to set the certificate with a byte[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WAGON-491) Being able to set certificate via byte[] not only a file

2018-04-06 Thread Michael Osipov (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16428110#comment-16428110
 ] 

Michael Osipov commented on WAGON-491:
--

Would you provide a decent PR for this?

> Being able to set certificate via byte[] not only a file
> 
>
> Key: WAGON-491
> URL: https://issues.apache.org/jira/browse/WAGON-491
> Project: Maven Wagon
>  Issue Type: Bug
>  Components: wagon-ssh
>Reporter: Laurent Granié
>Priority: Major
> Fix For: waiting-for-feedback
>
>
> I'm using wagon outside Maven.
> I would like to authenticate on sftp servers via a certificate.
> It's possible today via a file with a file path but not if I include the 
> certificate in the .jar.
> I would like to be able to set the certificate with a byte[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WAGON-491) Being able to set certificate via byte[] not only a file

2018-04-06 Thread JIRA

[ 
https://issues.apache.org/jira/browse/WAGON-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16428053#comment-16428053
 ] 

Laurent Granié commented on WAGON-491:
--

Yes.

It could be nice to create a method like setPrivateKey(byte[]).

This way, I will be able to integrate the key in my jar.

> Being able to set certificate via byte[] not only a file
> 
>
> Key: WAGON-491
> URL: https://issues.apache.org/jira/browse/WAGON-491
> Project: Maven Wagon
>  Issue Type: Bug
>  Components: wagon-ssh
>Reporter: Laurent Granié
>Priority: Major
> Fix For: waiting-for-feedback
>
>
> I'm using wagon outside Maven.
> I would like to authenticate on sftp servers via a certificate.
> It's possible today via a file with a file path but not if I include the 
> certificate in the .jar.
> I would like to be able to set the certificate with a byte[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WAGON-491) Being able to set certificate via byte[] not only a file

2018-04-05 Thread Michael Osipov (JIRA)

[ 
https://issues.apache.org/jira/browse/WAGON-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16426880#comment-16426880
 ] 

Michael Osipov commented on WAGON-491:
--

Are you talking about 
[http://maven.apache.org/wagon/wagon-provider-api/apidocs/org/apache/maven/wagon/authentication/AuthenticationInfo.html|`AuthenticationInfo`]?

> Being able to set certificate via byte[] not only a file
> 
>
> Key: WAGON-491
> URL: https://issues.apache.org/jira/browse/WAGON-491
> Project: Maven Wagon
>  Issue Type: Bug
>  Components: wagon-ssh
>Reporter: Laurent Granié
>Priority: Major
>
> I'm using wagon outside Maven.
> I would like to authenticate on sftp servers via a certificate.
> It's possible today via a file with a file path but not if I include the 
> certificate in the .jar.
> I would like to be able to set the certificate with a byte[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)