Main presentation file:

$ openssl genrsa -out private.key 512 $ openssl rsa -in private.key -pubout -out public.key $ echo Kryptologie | \ openssl pkeyutl -encrypt -inkey public.key -pubin | \ openssl pkeyutl -decrypt -inkey private.key -pkeyopt rsa_padding_mode:none | \ hexdump -C 00000000 00 02 f1 54 8c 5b 1c f4 52 9c 73 d3 e1 7a e2 95 |...T.[..R.s..z..| 00000010 a5 b6 d8 a7 c5 d9 5d bc e0 42 b3 44 06 21 25 2c |......]..B.D.!%,| 00000020 69 24 bc 91 40 08 29 e9 97 8c cd bc 88 2a 8a 07 |i$..@.)......*..| 00000030 cf 47 1b 00 4b 72 79 70 74 6f 6c 6f 67 69 65 0a |.G..Kryptologie.| 00000040

$ openssl genrsa -out private.key 512 $ openssl rsa -in private.key -pubout -out public.key $ echo Kryptologie | \ openssl pkeyutl -sign -inkey private.key | \ openssl pkeyutl -encrypt -inkey public.key -pubin -pkeyopt rsa_padding_mode:none | \ hexdump -C -v 00000000 00 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00000010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00000020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| 00000030 ff ff ff 00 4b 72 79 70 74 6f 6c 6f 67 69 65 0a |....Kryptologie.| 00000040
$ openssl genrsa -out private.key 512 $ openssl rsa -in private.key -pubout -out public.key $ openssl req -key private.key -x509 -new -subj "/CN=Testcert" -out testcert.crt $ openssl asn1parse -in testcert.crt | tail -n 1 318:d=1 hl=2 l= 65 prim: BIT STRING $ openssl x509 -in testcert.crt -outform der | tail -c -64 >signature.bin $ openssl pkeyutl -in signature.bin -encrypt -inkey public.key -pubin -pkeyopt rsa_padding_mode:none | \ hexdump -C 00000000 00 01 ff ff ff ff ff ff ff ff ff ff 00 30 31 30 |.............010| 00000010 0d 06 09 60 86 48 01 65 03 04 02 01 05 00 04 20 |...`.H.e....... | 00000020 0c fc 6d 0c f6 36 53 04 b9 43 50 be 83 b7 fc 59 |..m..6S..CP....Y| 00000030 6c 1d 2a 86 44 d5 4a 42 11 0e 13 19 8d 34 42 eb |l.*.D.JB.....4B.| 00000040
$ openssl pkeyutl -in signature.bin -encrypt -inkey public.key -pubin -pkeyopt rsa_padding_mode:none | \
tail -c +14 | \
openssl asn1parse -inform der -i
0:d=0 hl=2 l= 49 cons: SEQUENCE
2:d=1 hl=2 l= 13 cons: SEQUENCE
4:d=2 hl=2 l= 9 prim: OBJECT :sha256
15:d=2 hl=2 l= 0 prim: NULL
17:d=1 hl=2 l= 32 prim: OCTET STRING [HEX DUMP]:0CFC6D0CF6365304B94350BE83B7FC596C1D2A8644D54A42110E13198D3442EB