list_ssl.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!-- Begin toolbar -->
  2. <div class="toolbar">
  3. <div class="toolbar-inner">
  4. <div class="toolbar-right">
  5. </div>
  6. </div>
  7. </div>
  8. <!-- End toolbar -->
  9. <!-- Begin form -->
  10. <div class="container animate__animated animate__fadeIn">
  11. <form id="vstobjects" name="v_generate_csr" method="post">
  12. <input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
  13. <div class="form-container">
  14. <h1 class="form-title"><?= _("Generate Self-Signed SSL Certificate") ?></h1>
  15. <?php show_alert_message($_SESSION); ?>
  16. <div
  17. x-data="{
  18. text: '<?= base64_encode($v_crt) ?>',
  19. blob() {
  20. return window.URL.createObjectURL(new Blob([atob(this.text)], { type: 'text/plain' }))
  21. }
  22. }"
  23. class="u-mb20"
  24. >
  25. <label for="v_crt" class="form-label">
  26. <?= _("SSL Certificate") ?>
  27. <a
  28. x-bind:href="blob()"
  29. download="<?= htmlentities($v_domain) ?>.crt"
  30. ><i class="fas fa-download"></i></a>
  31. </label>
  32. <textarea
  33. x-model="atob(text)"
  34. class="form-control u-min-height100"
  35. name="v_crt"
  36. id="v_crt"
  37. ></textarea>
  38. </div>
  39. <div
  40. x-data="{
  41. text: '<?= base64_encode($v_key) ?>',
  42. blob() {
  43. return window.URL.createObjectURL(new Blob([atob(this.text)], { type: 'text/plain' }))
  44. }
  45. }"
  46. class="u-mb20"
  47. >
  48. <label for="v_key" class="form-label">
  49. <?= _("SSL Private Key") ?>
  50. <a
  51. x-bind:href="blob()"
  52. download="<?= htmlentities($v_domain) ?>.key"
  53. ><i class="fas fa-download"></i></a>
  54. </label>
  55. <textarea
  56. x-model="atob(text)"
  57. class="form-control u-min-height100"
  58. name="v_key"
  59. id="v_key"
  60. ></textarea>
  61. </div>
  62. <div
  63. x-data="{
  64. text: '<?= base64_encode($v_csr) ?>',
  65. blob() {
  66. return window.URL.createObjectURL(new Blob([atob(this.text)], { type: 'text/plain' }))
  67. }
  68. }"
  69. class="u-mb20"
  70. >
  71. <label for="v_csr" class="form-label">
  72. <?= _("SSL CSR") ?>
  73. <a
  74. x-bind:href="blob()"
  75. download="<?= htmlentities($v_domain) ?>.csr"
  76. ><i class="fas fa-download"></i></a>
  77. </label>
  78. <textarea
  79. x-model="atob(text)"
  80. class="form-control u-min-height100"
  81. name="v_csr"
  82. id="v_csr"
  83. ></textarea>
  84. </div>
  85. </div>
  86. </form>
  87. </div>
  88. <!-- End form -->