Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
puma /
examples /
puma /
[ HOME SHELL ]
Name
Size
Permission
Action
client-certs
[ DIR ]
drwxr-xr-x
cert_puma.pem
1.25
KB
-rw-r--r--
csr_puma.pem
607
B
-rw-r--r--
generate_server_test.rb
1.45
KB
-rw-r--r--
keystore.jks
2.2
KB
-rw-r--r--
puma_keypair.pem
1.64
KB
-rw-r--r--
server.p12
2.49
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : generate_server_test.rb
# frozen_string_literal: true =begin regenerates cert_puma.pem and puma_keypair.pem dates, key length & sign_algorithm are changed JRuby: after running this file, delete server.p12 and keystore.jks, then (I think) cd examples/puma openssl pkcs12 -export -password pass:jruby_puma -inkey puma_keypair.pem -in cert_puma.pem -name puma -out server.p12 keytool -importkeystore -srckeystore server.p12 -srcstoretype pkcs12 -srcstorepass jruby_puma -destkeystore keystore.jks -deststoretype JKS -storepass jruby_puma =end require 'openssl' module Generate KEY_LEN = 2048 SIGN_ALGORITHM = OpenSSL::Digest::SHA256 FNC = 'cert_puma.pem' FNK = 'puma_keypair.pem' class << self def run ca_key = OpenSSL::PKey::RSA.new KEY_LEN key = OpenSSL::PKey::RSA.new KEY_LEN raw = File.read File.join(__dir__, FNC), mode: 'rb' cert = OpenSSL::X509::Certificate.new raw puts "\nOld:", cert.to_text, "" now = Time.now.utc mo = now.month yr = now.year zone = '+00:00' cert.not_before = Time.new yr , mo, 1, 0, 0, 0, zone cert.not_after = Time.new yr+4, mo, 1, 0, 0, 0, zone cert.public_key = key.public_key cert.sign ca_key, SIGN_ALGORITHM.new puts "New:", cert.to_text, "" Dir.chdir __dir__ do File.write FNC, cert.to_pem, mode: 'wb' File.write FNK, key.to_pem , mode: 'wb' end rescue => e puts "error: #{e.message}" end end end Generate.run
Close