Skip to content

Instantly share code, notes, and snippets.

@lethak
Last active October 17, 2017 19:32
Show Gist options
  • Save lethak/7338c4a89f0ac9298ec3ff278e2243ed to your computer and use it in GitHub Desktop.
Save lethak/7338c4a89f0ac9298ec3ff278e2243ed to your computer and use it in GitHub Desktop.
#!/bin/bash
winpty openssl genrsa -des3 -out server.key 1024
winpty openssl req -new -key server.key -out server.csr
winpty openssl x509 -req -days 1024 -in server.csr -signkey server.key -out server.crt
# removing the passphrase for some version of apache on windows
winpty openssl rsa -in server.key -out server_withoutpassphrase.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment