Untitled

By Burly Horse, 6 Months ago, written in Plain Text, viewed 68 times.
URL http://pb.stoleyour.com/view/d0e9bde9 Embed
Download Paste or View RawExpand paste to full width of browser
  1. cd /usr/src/linux-headers-$(uname -r)/certs
  2.  
  3. # Create a config file for the certificate
  4. cat <<EOF > x509.genkey
  5. [ req ]
  6. default_bits = 4096
  7. distinguished_name = req_distinguished_name
  8. prompt = no
  9. x509_extensions = myexts
  10.  
  11. [ req_distinguished_name ]
  12. CN = Modules
  13.  
  14. [ myexts ]
  15. basicConstraints=critical,CA:FALSE
  16. keyUsage=digitalSignature
  17. subjectKeyIdentifier=hash
  18. authorityKeyIdentifier=keyid
  19. EOF
  20.  
  21. # Generate the key and certificate
  22. openssl req -new -nodes -utf8 -sha512 -days 36500 -batch \
  23.   -x509 -config x509.genkey -outform DER \
  24.   -out signing_key.x509 -keyout signing_key.pem

Reply to "Untitled"

Here you can reply to the paste above