-
Notifications
You must be signed in to change notification settings - Fork 305
Update SSL Certificate Naming Convention (Issue 876) #887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SSL Certificate Naming Convention (Issue 876) #887
Conversation
This change addresses Issue nodeSolidServer#876 'consider renaming localhost.key to privkey.pem' Edited README.MD Changed test environment instructions for generating self-signed SSL certificate to explcitly create a PEM certificate. Added tip to eliminate browser warning. './config.json-default' updated Will now use privkey.pem instead of 'localhost.key' as default SSL private key name in a test environment. Edited EXAMPLES.md to reflect preference for new SSL naming convention. './config.json-default' updated Will now use fullchain.pem instead of 'localhost.cert' as default SSL Certificate Name in a test environment.
This configuration file edit aligns Solid's SSL Certificate file naming convention. Now using the more widely adopted "privkey.pem" for the private key file name and "fullchain.pem" for the certificate file.
|
I added the additional change to the Dockerfile, as suggested by @melvincarvalho in the original issue discussion ( #876 ) |
|
@steven-tomlinson looks good to me, given that docker will do this every time. I think the snyk thing is failing on more than one issue. I dont get any details when clicking on it :
@kjetilk ? |
|
@melvincarvalho thanks! I have no idea what snyk is. I followed the link and apparently created an account of some kind but have no idea what do with it. @RubenVerborgh can you provide some guidance? If I am reading this correctly, it appears to be a check that you implemented. I just don't know where to start on identifying or resolving the problem. |
|
@steven-tomlinson I haven't implemented this check, but I can see its status. The failure is unrelated to this commit. |
|
I've made passing snyk optional. |
|
@melvincarvalho based on Ruben's comments, I think this is ready for review. Is there anything else I should do to get this completed and closed? |
|
Am I right in assuming that this is something that would only influence new installs? In which case, we can do it in on the 4.x branch. |
|
Yes. |
|
OK, good! I've rebased it on |
|
Looks great! Can I check these 2?
is the same as ?
And should the days be 3650 to be consistent? Actually I normally go with 36500 to give self signed certs no expiry. |
|
@melvincarvalho will create the key and cert file in one line and put them in the directory above the directory where the command is executed. Once the command is executed, the user will be prompted for the Subject (CN, OU, etc.) in order to complete creating the self-signed certificate. |
|
@kjetilk should I rebase my branch on 'develop' instead of 'master" as well before initiating a pull request? |
Normally, yes, but I did it for you this time! :-) We need to reconsider which branch is our default, I think. |
This change addresses Issue #876 'consider renaming localhost.key to privkey.pem'
Edited README.MD
Changed test environment instructions for generating self-signed SSL certificate to explcitly create a PEM certificate.
Added tip to eliminate browser warning.
'./config.json-default' updated
Will now use privkey.pem instead of 'localhost.key' as default SSL private key name in a test environment.
Edited EXAMPLES.MD to reflect preference for new SSL naming convention.
'./config.json-default' updated
Will now use fullchain.pem instead of 'localhost.cert' as default SSL Certificate Name in a test environment.
'./Dockerfile' updated
Will now use fullchain.pem instead of 'localhost.cert' as default SSL Certificate File Name when generating Certificate Request.
'./Dockerfile' updated
Will now use privkey.pem instead of 'localhost.key' as default SSL Key File Name when generating Certificate Request.
This contribution to Solid is governed by the MIT License.