genssl
v0.0.10
Published
Generate free SSL certificates with https://gethttpsforfree.com/
Downloads
2
Readme
genssl
Generate free SSL certificates with https://gethttpsforfree.com/
Example
~ sudo npm i -g genssl
~ genssl data.yaml
YOUR KEY:
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuXwUbRNQxC1WuEtps+4Y
YrUwwJ5ZeDYvk2xyhXwOUEAIqpLKdwp08ibNPvaGHivdp+yWQwuhKqd5IAHzWg+d
Quk0afQX3z64ZEGw+E0680UTyJ4iwa7Zt+9is2JHe+1UWXa98h3j/tleryzuYfnO
J2vDdz4A+rVvbtgCM/seNNkwvM0LCBbh+/TYGpG74Q5pasgJsTB4dUi70psOwt7c
EFYDCXeIoH0jAYOqhxHU6Uo26WNHVxmRAkTVfIgYkyzmhMJ0mqtjtqetnMF/EgCB
cs/PfigWVoQ5KlyMjzlRUXt/COlsXeszKTGqPu/7MIh6LZSWZAmIr5ph/8yPVg5f
aQIDAQAB
-----END PUBLIC KEY-----
YOUR CSR:
-----BEGIN CERTIFICATE REQUEST-----
MIICyzCCAbMCAQAwgYUxCzAJBgNVBAYTAlJVMREwDwYDVQQIDAhTbW9sZW5zazER
MA8GA1UEBwwIU21vbGVuc2sxEDAOBgNVBAoMB1NlbmNvcnQxGzAZBgNVBAMMEmZp
c2hseS5zZW5jb3J0LmNvbTEhMB8GCSqGSIb3DQEJARYSdGVuaXJ5dGVAZ21haWwu
Y29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3XghTu7GhERVHx3g
eofR+j3XM+eaNQseKl0Y9tvXwmKE++uLShVT9Jglt0+r5Zv6yDDE//8hUEWx0R4F
cvSGXCciFj2Mn+7C11AtVwS7cjgYJ+ndi4rY2ZQBr187utmvtA5FuXZRh2OoEZWY
unP/VguC9htFU7iCIlbtQf+izlcS/K/4H3jPDvRe7ABHJ8ad+ZioaICE93Smvlgy
GVj9SAn7m0TKvr/qxH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FZT3FoeEhVNlVvMjZXTkhWeG1SQWtUVmZJZ1lreXptaE1KMG1xdGp0cWV0bk1GX0VnQ0Jjc19QZmlnV1ZvUTVLbHlNanpsUlVYdF9DT2xzWGVzektUR3FQdV83TUloNkxaU1daQW1JcjVwaF84eVBWZzVmYVEifX0.eyJ0ZXJtc09mU2VydmljZUFncmVlZCI6dHJ1ZX0" | openssl dgst -sha256 -hex -sign $PRIV_KEY
OUTPUT:
(stdin)= a36b487ab71a8a2444d8c2b60877aaeddb9355e907cb96deec7d1e8084d91ffba81a460102b77fda57e1d78dce2905f27c82c4079e5028a66ee32aaa8c4759df8b4cee17b2f35a8b871b4a1b35e31cd991d510424d83096a77acde4ae090292c1399ee36dfd96ff6df80734bf591fd7fe6a0da24a3215f5d0eac79dabad6b8f6b40d6c85ec610c8c3a9a92369e7bf09993c3b3abffab15f84ada2a77cccef718f00252d00a9d4acf582d76b34bb196535523ffa15d8d777f1159f9e4874c55bd93471c5e48eae0752ba13d1ecec735aad221177c9766ef8fbf5c86fc4c29cd1e3699ddb4a0e947fbdbced7f396b60a309e85d0a5a7483e809cb75bac3ed4ece0