Skip to content
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

Add sslSecret value for mounting custom certificate #330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AngellusMortis
Copy link

This adds a new secret mount that lets you load a pkcs12 keystrore to use with Plex.

It would allow you to create and manage a cert with something like cert-manager:

apiVersion: v1
kind: Secret
metadata:
  name: pkcs-secret
  namespace: media
type: Opaque
stringData:
  password: somePassword
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: cert-plex
  namespace: media
spec:
  secretName: cert-plex
  duration: 2160h
  renewBefore: 360h
  issuerRef:
    name: letsencrypt-prod
    kind: ClusterIssuer
  commonName: plex.example.com
  dnsNames:
  - plex.example.com
  keystores:
    pkcs12:
      create: true
      profile: Modern2023  # important as default profile will not work with Plex
      passwordSecretRef:
        name: pkcs-secret
        key: password

Then you can set sslSecret from above (cert-plex) and it will mount the keystore at /ssl/keystore.p12 so you can then use the following Network settings:

Custom certificate location: /ssl/keystore.p12
Custom certificate encryption key: somePassword
Custom certificate domain: plex.example.com
Custom server access URLs: https://plex.example.com

Pairs well with my other PR: #329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant