質問編集履歴

1

ローカル環境でDev / Snapshot Public Keyを貼り付けた時の状況を追記に書きました。

2019/05/12 08:52

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -67,3 +67,63 @@
67
67
  Laravel Framework 5.5.45
68
68
 
69
69
  実行環境 homestead
70
+
71
+
72
+
73
+ ## 追記
74
+
75
+ composer self-update --update-keys と入力し実行すればうまく動きました。
76
+
77
+ 次にhttps://composer.github.io/pubkeys.htmlのDev / Snapshot Public Keyをコピーしてターミナルに張り付けてみたのですが、下記のように改行が含まれInvalid inputと返されてしまいます。
78
+
79
+ ちゃんと認識されるようにするにはどうすればよいのでしょうか?
80
+
81
+ ```
82
+
83
+ vagrant@homestead:~/code$ composer self-update --update-keys
84
+
85
+ Open https://composer.github.io/pubkeys.html to find the latest keys
86
+
87
+
88
+
89
+ Enter Dev / Snapshot Public Key (including lines with -----): -----BEGIN PUBLIC KEY-----
90
+
91
+
92
+
93
+ Enter Dev / Snapshot Public Key (including lines with -----): MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAnBDHjZS6e0ZMoK3xTD7f
94
+
95
+ Invalid input
96
+
97
+ Enter Dev / Snapshot Public Key (including lines with -----):
98
+
99
+ Invalid input
100
+
101
+ Enter Dev / Snapshot Public Key (including lines with -----): FNCzlXjX/Aie2dit8QXA03pSrOTbaMnxON3hUL47Lz3g1SC6YJEMVHr0zYq4elWi
102
+
103
+ Invalid input
104
+
105
+ Enter Dev / Snapshot Public Key (including lines with -----):
106
+
107
+ Invalid input
108
+
109
+ Enter Dev / Snapshot Public Key (including lines with -----): i3ecFEgzLcj+pZM5X6qWu2Ozz4vWx3JYo1/a/HYdOuW9e3lwS8VtS0AVJA+U8X0A
110
+
111
+ Invalid input
112
+
113
+ Enter Dev / Snapshot Public Key (including lines with -----):
114
+
115
+ Invalid input
116
+
117
+ Enter Dev / Snapshot Public Key (including lines with -----): hZnBmGpltHhO8hPKHgkJtkTUxCheTcbqn4wGHl8Z2SediDcPTLwqezWKUfrYzu1f
118
+
119
+ Invalid input
120
+
121
+ Enter Dev / Snapshot Public Key (including lines with -----):
122
+
123
+ Invalid input
124
+
125
+ Enter Dev / Snapshot Public Key (including lines with -----): o/j3WFwFs6GtK4wdYtiXr+yspBZHO3y1udf8eFFGcb2V3EaLOrtfur6XQVizjOuk
126
+
127
+
128
+
129
+ ```