How can you set the private key for a PrivateKey credential object using the PowerShell module
Hi,
I'm able to set a public key for a new PrivateKey credential in RDM, but when I try to set a private key
with $test.Credentials.PrivateKeyData = "MyPrivateKey" it doesn't work. Do I need to set other values or what am I doing wrong?
Kind regards,
Victor
Hello,
Thank you for contacting the Devolutions Service Desk !
Where exactly are you setting these values ?
When I say this, I mean in which field of what entry type ?
Best regards,
Im trying to add my own private key to a "PrivateKey" credential object. First I'm saving the content of a new session in a PowerShell variable. After that is done I'm changing the values of this new variable with $variable.Credentials.PublicKey and $variable.Credentials.PrivateKeyData
I don't know if that makes more sense. I'm just trying to add my own private key, adding a public key with this method works perfectly fine.
Hello,
I will speak with one of our engineers regarding your case to see if what you're trying to do is possible and what can be chaged if it is.
I will update you as soon as I receive news.
Best regards,
I've figured out how to do it. I just had to set the privatekeytype to data that way I'm able to store my own private key in the PrivateKeyData parameter.
Hello,
That's great news !
I'm glad you managed to find a way to get your desired result !
Best regards,