c# - Using a self-sign certificate for intranet applications -


i'm designing c# server-client applications communicating on intranet using webapi, , i've been looking around way of encrypting communication. figured out can use self-sign certificate needs. question that- possible import certificate on client side in process of program installation? want create kind of automation around wouldn't need manually every time install new client.

p.s - first question in stack overflow if think should have give more information i'll happy so

the answer question yes or no depending on whether private key property marked exportable during creation. since self-signed certificate, of tools used creating 1 have property enabled. should able export certificate along private key source machine in .pfx extension , import certificate file on destination machine.

i assuming not worried certificate trust using self-signed certificate.

update

in order import certificate via mmc, refer instructions available here: export certificate private key

you can use certmgr.exe or certutil.exe import certificate via command line. see this:

similaryly powershell can use import-certificate commandlet. see article reference: https://technet.microsoft.com/en-us/itpro/powershell/windows/pkiclient/import-certificate

also see thread: import certificate trusted root not personal [command line]


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -