Dart HTTP Server and Import SSL Certificate

I am creating a Dart HTTP server for file deployment. I can run https with a self-signed certificate. But how do you import .crt correctly from someone like GoDaddy?

+4
source share
1 answer

So, after a long struggle, I finally managed to import the certificate from GoDaddy properly into the Darts HttpServer bindSecure.

To remove this, you must first combine your key and certificate from GoDaddy together.

This can be done using the following option: openssl pkcs12 -export -in website_cert.crt -inkey website_key.key -out website.p12 -name Name-Of-Cert -passout pass:SECRET

After... pk12util -i website.p12 -d 'sql:./' -W SECRET

Now you should see a certificate named Name-Of-Cert, (if you have a password in db, apply the appropriate flags) certutil -L -d 'sql:./'

Now check certutil -V -u V -d 'sql:./' -n "Name-Of-Cert"

: https://stomp.colorado.edu/blog/blog/2010/06/04/on-setting-up-mod_nss/

+2

Source: https://habr.com/ru/post/1543304/


All Articles