Skip to content

Instantly share code, notes, and snippets.

View soltveit's full-sized avatar

Søren Soltveit soltveit

  • Clearhaus A/S
  • Denmark
View GitHub Profile
@soltveit
soltveit / key.md
Last active January 29, 2016 13:36
RSA public key (PEM format)
require 'openssl'
key = OpenSSL::PKey::RSA.new 2048

puts key            # private key
puts key.public_key # public key

Example private key

@soltveit
soltveit / 3dsecure-flow.md
Last active April 14, 2021 07:42
3D Secure flow

3D Secure flow

Verify cardholder is enrolled in 3D Secure program

Submit card and merchant information to https://mpi.3dsecure.io (MPI) according to:

The response will include: