jeroen / openssl

OpenSSL bindings for R
Other
63 stars 20 forks source link

[Question] Generate certificate #61

Open artemklevtsov opened 5 years ago

artemklevtsov commented 5 years ago

Hello,

Can I reproduce this command with this package?

openssl genrsa -out ./server.key 2048
openssl req -new -key ./server.key -out ./server.ca
openssl x509 -req -days 365 -in ./server.ca -signkey ./server.key -out ./server.cert
jeroen commented 5 years ago

Not right now, I have only implemented client stuff. We could add it. May I ask, what is your use case for generating certificates in R?

artemklevtsov commented 5 years ago

I implemented API server with RestRserve package. To generate client self signed certificates to services access.

jeroen commented 5 years ago

Does Rserve support https?

artemklevtsov commented 5 years ago

Sure. You can find more details here: https://github.com/s-u/Rserve/wiki/rserve.conf

Also RestRserve example to use it: https://github.com/dselivanov/RestRserve/tree/master/examples/api-key-authentication

hongooi73 commented 5 years ago

I think this would be a great feature to have. I'm writing a bunch of packages to talk to Azure, and being able to provide certs would fit in well with that. For example I can create Active Directory apps, but currently they use passwords because I don't have an easy way to generate certs automatically.