cederom opened a new pull request, #154:
URL: https://github.com/apache/nuttx-website/pull/154
## Summary
* This script genrates local testing SSL key and certificate using openssl.
* Enter key password (used to sign crt and launch srv) and cert details.
* Then: `bundle exec jekyll serve --ssl-cert server.crt --ssl-key
server.key`.
## Impact
Only local testing when SSL also needs to be tested its a quickest possible
way to generate self-signed certificate locally.
## Testing
Tested on FreeBSD 14.3:
1. Generate ssl server.key + server.crt:
```
% ./ssltestgen.sh
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
Enter pass phrase for server.key:
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:PL
State or Province Name (full name) [Some-State]:WAW
Locality Name (eg, city) []:WAW
Organization Name (eg, company) [Internet Widgits Pty Ltd]:CeDeROM
Organizational Unit Name (eg, section) []:R&D
Common Name (e.g. server FQDN or YOUR name) []:localhost
Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Enter pass phrase for server.key:
Certificate request self-signature ok
subject=C = PL, ST = WAW, L = WAW, O = CeDeROM, OU = R&D, CN = localhost
```
2. Start local Jekyll with ssl:
```
% bundle exec jekyll serve --ssl-cert server.crt --ssl-key server.key
(..)
Enter PEM pass phrase:
Server address: https://127.0.0.1:4000
Server running... press ctrl-c to stop.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]