/unmaintained/cryptlib/notes.txt

http://github.com/abeaumont/factor · Plain Text · 51 lines · 31 code · 20 blank · 0 comment · 0 complexity · 38bc9998ee16fa3fa51a9d90ecd0db51 MD5 · raw file

  1. Read remaining data:
  2. USING: alien libc kernel-internals byte-arrays ;
  3. SYMBOL: buffer
  4. 11 "uchar*" malloc-array buffer set
  5. "Hello world" buffer get string>memory
  6. buffer get 11 memory>string .
  7. "Hello world"
  8. 11 [ buffer get swap alien-unsigned-1 ] each
  9. .s
  10. 72
  11. 101
  12. 108
  13. 108
  14. 111
  15. 32
  16. 119
  17. 111
  18. 114
  19. 108
  20. 100
  21. 11 [ buffer get swap alien-unsigned-1 ] map
  22. >byte-array .
  23. { 72 101 108 108 111 32 119 111 114 108 100 }
  24. Parse a file:
  25. openssl asn1parse -in file.pem
  26. Parse a DER file:
  27. openssl asn1parse -inform DER -in file.der
  28. Generate a PKCS#12 file:
  29. openssl pkcs12 -export -in certs.pem -out file.p12 -name "MY Certificate"
  30. The export option specifies that a PKCS#12 file will be generated (rather
  31. than parsed).