spacemonkeygo / openssl

OpenSSL bindings for Go
http://godoc.org/github.com/spacemonkeygo/openssl
Apache License 2.0
472 stars 237 forks source link

Lack of examples on how to generate certificates #33

Closed norx85 closed 7 years ago

norx85 commented 9 years ago

The documentation lack of examples on how to generate certificates. I tried to generate a signed p12 but i was unable to do that. I also started a stackoverflow post on it but no one has replied, so probably no one know how to do that, some examples are definitely necessary.

lunixbochs commented 8 years ago

There's code here in the cert test here: https://github.com/spacemonkeygo/openssl/blob/master/cert_test.go

There's also code in my poxd project that generates certs and keys: https://github.com/lunixbochs/poxd/blob/master/tls.go#L13 (keep in mind poxd uses my og preprocessor, the try() blocks just cascade error returns)

Only the MarshalPEM function is implemented however, not PKCS12.

zeebo commented 7 years ago

Question seems answered. Closing.