从PositiveSSL证书创建私钥

时间:2019-04-01 08:15:23

标签: java ssl certificate ssl-certificate rsa

我刚刚收到包含这些文件的证书:

from bokeh.io import show, output_file
from bokeh.models import ColumnDataSource
from bokeh.palettes import Spectral6
from bokeh.plotting import figure
from bokeh.transform import factor_cmap
from bokeh.models.widgets import DataTable, TableColumn
from bokeh.layouts import row

output_file("colormapped_bars.html")

fruits = ['Apples', 'Pears', 'Nectarines', 'Plums', 'Grapes', 'Strawberries']
counts = [5, 3, 4, 2, 4, 6]

source = ColumnDataSource(data=dict(fruits=fruits, counts=counts))

p = figure(x_range=fruits, plot_height=250, toolbar_location=None, title="Fruit Counts")
p.vbar(x='fruits', top='counts', width=0.9, source=source, legend="fruits",
       line_color='white', fill_color=factor_cmap('fruits', palette=Spectral6, factors=fruits))

columns = [
    TableColumn(field="fruits", title="Fruits"),
    TableColumn(field="counts", title="Counts")
]
data_table = DataTable(source=source, columns=columns, width=400, height=280, index_position=None)

p.xgrid.grid_line_color = None
p.y_range.start = 0
p.y_range.end = 9
p.legend.orientation = "horizontal"
p.legend.location = "top_center"

show(row(p, data_table))

,还有文本格式的PositiveSSL证书。

我想知道是否可以从命令行生成私钥,也许使用Java或其他工具

2 个答案:

答案 0 :(得分:3)

不。如果可以的话,则意味着整个https互联网都已损坏。您需要生成CSR的人的密钥。

正确的工作流程是:创建一个SSL密钥,使用该密钥生成一个证书签名请求(CSR),将该CSR提供给SSL证书提供者(PositiveSSL),让他们对其进行签名并为您提供证书。

答案 1 :(得分:0)

为了补充 Kees 的回答 - 您将一起生成 CSR 和私钥。将它们添加到负载均衡器到 nginx 时需要此私钥