Skip to content

Self-signed CA

Actions
Create self signed CA for testing
v0.0.4
Latest
Star (8)

Self signed certificate GitHub action

GitHub Releases

This action generates a self-signed certificate that can be used during test phase.

Inputs

hostcert

  • Required The file where to store the certificate. Defaults to hostcert.pem

hostkey

  • Required The file where to store the host key. Defaults to hostkey.pem

cachain

  • Required The file where to store CA chain. Defaults to ca-chain.pem
name: test with self signed certificate
on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Generate certificates for next step
        uses: kofemann/[email protected]

        with:
          hostcert: 'hostcert.pem'
          hostkey:  'hostkey.pem'
          cachain:  'ca-chain.pem'

      - name: Use generated certificates
        run: |
            openssl x509 -in hostcert.pem -noout -text

Acknowledgement

This work is based on Nick Sullivan, Cloudflare and Johannes Tegnér blog posts.

License

Licensed under BSD 2-Clause “Simplified” License

Self-signed CA is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Create self signed CA for testing
v0.0.4
Latest

Self-signed CA is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.