我正在尝试将网络共享上的文件从一个文件夹复制到另一个文件夹,所以我只是进行复制和粘贴,我安装了 TeraCopy,它显示的速度为 2KB/s 到 7KB/s。
我在家工作,通过 VPN 访问共享。
我的问题是,这就像我自己机器上的普通副本吗?文件从文件夹 A 到文件夹 B 是否不经过我的计算机?我应该通过目标计算机中的终端启动复制操作吗?如果是这样,即使我断开/关闭终端窗口,如何启动复制操作并使其保持运行?
我正在尝试将网络共享上的文件从一个文件夹复制到另一个文件夹,所以我只是进行复制和粘贴,我安装了 TeraCopy,它显示的速度为 2KB/s 到 7KB/s。
我在家工作,通过 VPN 访问共享。
我的问题是,这就像我自己机器上的普通副本吗?文件从文件夹 A 到文件夹 B 是否不经过我的计算机?我应该通过目标计算机中的终端启动复制操作吗?如果是这样,即使我断开/关闭终端窗口,如何启动复制操作并使其保持运行?
$ConfigContent = @"
; Request.inf
[Version]
Signature="`$Windows NT$"
[NewRequest]
Subject = "CN=$CN,C=ES,ST=Barcelona,L=Barcelona,O=$O"
KeySpec = 1
KeyLength = 2048
Exportable = TRUE
MachineKeySet = TRUE
SMIME = False
PrivateKeyArchive = FALSE
UserProtected = FALSE
UseExistingKeySet = FALSE
ProviderName = "Microsoft RSA SChannel Cryptographic Provider"
ProviderType = 12
RequestType = PKCS10
KeyUsage = 0xa0
[EnhancedKeyUsageExtension]
OID=1.3.6.1.5.5.7.3.1 ; Server Authentication
[Extensions]
2.5.29.17 = "{text}"
_continue_ = "DNS=$CN&"
_continue_ = "DNS=testing.$CN&"
"@
$ConfigContent | Out-File -FilePath "$CN.inf" -Encoding ASCII
# Create a certificate request
if (certreq -new -f "$CN.inf" "$CN.csr") {
# Submit the request to a Certificate Authority
# Define a regular expression pattern to match the ID
$pattern = 'Id\. de solicitud: (\d+)'
$commandOutput = certreq -submit -config "localhost\COMPANY-AD01-CA" "$CN.csr" "$CN.crt"
# Use the Select-String cmdlet to find the first match in the output
$match = $commandOutput | Select-String -Pattern $pattern | Select-Object -First 1
if ($match) {
$id = $match.Matches.Groups[1].Value
# Accept the issued certificate
certutil -config "localhost\COMPANY-AD01-CA" -resubmit $id
certreq -config "localhost\COMPANY-AD01-CA" -q -f -retrieve $id "$CN.crt"
Remove-Item -Path "$CN.inf", "$CN.csr", "$CN.rsp", "$CN.csr" -Force
}
else {
Write-Host "Failed to submit the certificate request."
}
}
else {
Write-Host "Failed to create the certificate request."
}
我使用它创建一个证书,将其发送到 CA 并接受它。
certreq -retrieve
只获取证书,而不获取密钥,我如何获取密钥或如何在 apache 中使用该证书?