SSL自己署名

久し振りに SSL テスト環境をセットアップしたので書いておきます。

証明書を作成する部分だけです。
出来上がったサーバ証明書を apache にセットするところは省略しました。

  1. 秘密鍵作成
  2. ランダムなデータを作成します。

    # openssl md5 /usr/local/bin/* > rand.dat

    秘密鍵を作成します。

    # openssl genrsa -rand rand.dat -des3 1024 > example.com.key
    56935 semi-random bytes loaded
    Generating RSA private key, 1024 bit long modulus
    ..............++++++
    ........................................++++++
    e is 65537 (0x10001)
    Enter pass phrase:
    Verifying - Enter pass phrase:
  3. CSR 作成
  4. # openssl req -new -key example.com.key -out example.com.csr
    Enter pass phrase for example.com.key:
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [GB]:JP
    State or Province Name (full name) [Berkshire]:Tokyo
    Locality Name (eg, city) [Newbury]:Minato-ku
    Organization Name (eg, company) [My Company Ltd]:example
    Organizational Unit Name (eg, section) []:HQ
    Common Name (eg, your name or your server's hostname) []:example.com
    Email Address []:info@example.com
     
    Please enter the following 'extra' attributes
    to be sent with your certificate request
    A challenge password []:
    An optional company name []:
  5. 自己署名証明書作成
  6. # openssl x509 -in example.com.csr -out example.com.crt -req -s
    ignkey example.com.key -days 3650
    Signature ok
    subject=/C=JP/ST=Tokyo/L=Minato-ku/O=example/OU=HQ/CN=example.com/emailAddress
    =info@example.com
    Getting Private key
    Enter pass phrase for example.com.key:
  7. 秘密鍵からパスフレーズを削除
  8. # openssl rsa -in example.com.key -out example.com.key_without_pp
    Enter pass phrase for example.com.key:
    writing RSA key

名刺を作りました

名刺が無くなりそうなので近所のお店で作りました。

名刺は自分でデータを作った方が断然安くなりますね 😛

前回作った時は近所のハンコ屋さん21でその時使っていた名刺を見せて同じヤツを作ってもらいました。

今回もそうしたかったのですが、そのお店はクローズしてしまったので同じハンコ屋さん21の別の店舗へ行ってみました。

しかしお休みでした 😥

しかたなくオフィス用品を販売しているお店へ行ってみましたが名刺は扱っていないと言われました 😥

そう言えば…気になっているお店があったのを思い出しました 💡
Lithmatic へ行ってみました。

Lithmatic では名刺を見せてこれと同じやつ、とざっくり頼むと 7,665 円(税込)かかると言われました。
内訳はこんな感じです。

  • データ作成費片面@2,000円×両面=4,000円
  • 名刺パック@3,300円×1=3,300円

結構かかるんですね…と言うとデータを持ってきてくれればデータ作成費4,000円がかからないと教えていただきました :mrgreen:

凝ったデザインなら7千円くらい払っても良いのですが、普通の名刺なのでお金をかける気がしないので word で作りました。

word のデータと、念のため word の画面のスクリーンショットを画像にしてメールで送信して入稿しました。

電話して確認したところOKとの事。

料金は3,465円(税込)

次からもデータを自分で作ろうかと思います 🙂

凝ったデザインの場合でも自分でデータを作れれば同じ料金でかっこいい名刺が作れますね~