GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jiayanguo/https_sample: Build a secure website

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
java
java
 
 
nodejs
nodejs
 
 
.gitignore
.gitignore
 
 
readme.md
readme.md
 
 

Repository files navigation

About

This is a sample which tells you how to build ssl server

  1. java folder contains the way how to build ssl server using java and spring.
  2. nodejs folder contains the way how to build ssl server using nodejs and express.

More

Instead of self signed certificate. We can create our own CA signed Certificate. Note, it requires to import CA public key to our truststore in this case.

steps

  • generate ca private key. (Need a password)

    openssl genrsa -aes256 -out CAPrivate.key 2048

  • generate CA public key. Use password created before (Need to import this public key to client truststore to establish trust).

    openssl req -new -x509 -key CAPrivate.key -sha256 -days 3650 -out FakeCA.pem

  • Generate a private key for sever. Need a password as well.

    openssl genrsa -aes256 -out www.fakesite.key 2048

  • generate a certificate signing request

    openssl req -new -key www.fakesite.key -out www.fakesite.csr

  • sign the csr

    openssl x509 -req -in www.fakesite.csr -CA FakeCA.pem -CAkey CAPrivate.key -CAcreateserial -out www.fackesite.crt -days 365 -sha256

  • Now you should have signed crt.

    CAPrivate.key
    FakeCA.pem
    FakeCA.srl
    www.fackesite.crt
    www.fakesite.csr
    www.fakesite.key

Reference

  • http://www.steves-internet-guide.com/ssl-certificates-explained/
  • https://www.youtube.com/watch?v=iQsKdtjwtYI
  • https://www.linkedin.com/learning/learning-ssl-tls/hashing-and-digital-signatures

About

Build a secure website

Topics

javanodejsssl-certificatesssl-server

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.