Jump to content

Search the Community

Showing results for tags 'p12'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
    • Emby Premiere Purchase/Subscription Support
    • Feature Requests
    • Tutorials and Guides
  • Emby Server
    • General/Windows
    • Android Server
    • Asustor
    • FreeBSD
    • Linux
    • NetGear ReadyNAS
    • MacOS
    • QNAP
    • Synology
    • TerraMaster NAS
    • Thecus
    • Western Digital
    • DLNA
    • Live TV
  • Emby Apps
    • Amazon Alexa
    • Android
    • Android TV / Fire TV
    • Windows & Xbox
    • Apple iOS / macOS
    • Apple TV
    • Kodi
    • LG Smart TV
    • Linux & Raspberry Pi
    • Roku
    • Samsung Smart TV
    • Sony PlayStation
    • Web App
    • Windows Media Center
    • Plugins
  • Language-specific support
    • Arabic
    • Dutch
    • French
    • German
    • Italian
    • Portuguese
    • Russian
    • Spanish
    • Swedish
  • Community Contributions
    • Ember for Emby
    • Fan Art & Videos
    • Tools and Utilities
    • Web App CSS
  • Testing Area
    • WMC UI (Beta)
  • Other
    • Non-Emby General Discussion
    • Developer API
    • Hardware
    • Media Clubs

Blogs

  • Emby Blog

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 2 results

  1. Pour ceux qui ont un certificat Let's Encrypt sur leur Synology, voici un script pour le transformer automatique en fichier P12 pour être utilisé par EMBY #!/bin/sh # CONFIGURATION #script_folder=/volume2/Emby backup/Certificats à conserver script_folder=/volume2/video # p12 file p12_file_path=$script_folder/certificate_auto.pfx # Synology's Default Let's encrypt folder letsencrypt_cert_folder=/usr/syno/etc/certificate/system/default # renew timestamp renew_timestamp=renew_emby_timestamp.txt # p12 password p12cert_password=EMBY # DO NOT CHANGE BELOW UNLESS YOU'RE A WIZARD generate_p12=false current_date=`date +"%s"` current_certificate_date=`openssl x509 -enddate -noout -in $letsencrypt_cert_folder/RSA-cert.pem | cut -d'=' -f2` current_certificate_timestamp=`date -d "$current_certificate_date" +"%s"` # check if the renew_timestamp file exists if [ ! -f $script_folder/$renew_timestamp ]; then echo "Generate timestamp for the current renew date... " echo $current_certificate_timestamp > $script_folder/$renew_timestamp chmod +rw $script_folder/$renew_timestamp chown admin:users $script_folder/$renew_timestamp # generate the first p12 file generate_p12=true else renew_date=`cat $script_folder/$renew_timestamp` # check if it is necessary to renew the certificate or not if expr "$current_date" ">" "$renew_date" > /dev/null; then # generate a new p12 file echo "Renewing certificate..." generate_p12=true # update timestamp in the file echo $current_certificate_timestamp > $script_folder/$renew_timestamp else echo "It is not necessary to renew the certificate, abort." exit 0 fi fi # generate a new certificate file if necessary, and restart EMBY Server if expr "$generate_p12" "=" "true" > /dev/null; then echo "Generating the p12 certificate file..." openssl pkcs12 -export -in $letsencrypt_cert_folder/RSA-fullchain.pem -inkey $letsencrypt_cert_folder/RSA-privkey.pem -out $p12_file_path -password pass:$p12cert_password chmod +r $p12_file_path chown admin:users $p12_file_path echo "Restarting EMBY Server..." synopkg restart EmbyServer echo "Done." fi A lancer en "Root" quotidiennement
  2. Guide to have a script to create a new p12 certificate for EmbyServer when Synology renews its Let's Encryption Certificate. #!/bin/sh # CONFIGURATION #script_folder=/volume2/Emby backup/Certificats à conserver script_folder=/volume2/video # p12 file p12_file_path=$script_folder/certificate_auto.pfx # Synology's Default Let's encrypt folder letsencrypt_cert_folder=/usr/syno/etc/certificate/system/default # renew timestamp renew_timestamp=renew_emby_timestamp.txt # p12 password p12cert_password=EMBY # DO NOT CHANGE BELOW UNLESS YOU'RE A WIZARD generate_p12=false current_date=`date +"%s"` current_certificate_date=`openssl x509 -enddate -noout -in $letsencrypt_cert_folder/RSA-cert.pem | cut -d'=' -f2` current_certificate_timestamp=`date -d "$current_certificate_date" +"%s"` # check if the renew_timestamp file exists if [ ! -f $script_folder/$renew_timestamp ]; then echo "Generate timestamp for the current renew date... " echo $current_certificate_timestamp > $script_folder/$renew_timestamp chmod +rw $script_folder/$renew_timestamp chown admin:users $script_folder/$renew_timestamp # generate the first p12 file generate_p12=true else renew_date=`cat $script_folder/$renew_timestamp` # check if it is necessary to renew the certificate or not if expr "$current_date" ">" "$renew_date" > /dev/null; then # generate a new p12 file echo "Renewing certificate..." generate_p12=true # update timestamp in the file echo $current_certificate_timestamp > $script_folder/$renew_timestamp else echo "It is not necessary to renew the certificate, abort." exit 0 fi fi # generate a new certificate file if necessary, and restart EMBY Server if expr "$generate_p12" "=" "true" > /dev/null; then echo "Generating the p12 certificate file..." openssl pkcs12 -export -in $letsencrypt_cert_folder/RSA-fullchain.pem -inkey $letsencrypt_cert_folder/RSA-privkey.pem -out $p12_file_path -password pass:$p12cert_password chmod +r $p12_file_path chown admin:users $p12_file_path echo "Restarting EMBY Server..." synopkg restart EmbyServer echo "Done." fi
×
×
  • Create New...